This commit is contained in:
iNPUTmice 2014-06-14 10:29:26 +02:00
parent d067448808
commit 471ed7838a
1 changed files with 8 additions and 4 deletions

View File

@ -683,12 +683,16 @@ public class ConversationFragment extends Fragment {
break; break;
} }
} }
if (this.conversation.getMessages().size() == 0) {
this.messageList.clear();
} else {
for(Message message : this.conversation.getMessages()) { for(Message message : this.conversation.getMessages()) {
if (!this.messageList.contains(message)) { if (!this.messageList.contains(message)) {
this.messageList.add(message); this.messageList.add(message);
} }
} }
updateStatusMessages(); updateStatusMessages();
}
this.messageListAdapter.notifyDataSetChanged(); this.messageListAdapter.notifyDataSetChanged();
if (conversation.getMode() == Conversation.MODE_SINGLE) { if (conversation.getMode() == Conversation.MODE_SINGLE) {
if (messageList.size() >= 1) { if (messageList.size() >= 1) {