aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-06-14 10:29:26 +0200
committeriNPUTmice <daniel@gultsch.de>2014-06-14 10:29:26 +0200
commit471ed7838a8ef3cbb0e13c2aa1c777ca66372247 (patch)
tree030c212d5d79ac5ab629d172366e5a972c334fe6
parentd067448808801b49732e1a64b9b573267e0dee37 (diff)
fixed #204
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/ui/ConversationFragment.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/eu/siacs/conversations/ui/ConversationFragment.java b/src/eu/siacs/conversations/ui/ConversationFragment.java
index b5c5f592..098285e2 100644
--- a/src/eu/siacs/conversations/ui/ConversationFragment.java
+++ b/src/eu/siacs/conversations/ui/ConversationFragment.java
@@ -683,12 +683,16 @@ public class ConversationFragment extends Fragment {
break;
}
}
- for(Message message : this.conversation.getMessages()) {
- if (!this.messageList.contains(message)) {
- this.messageList.add(message);
+ if (this.conversation.getMessages().size() == 0) {
+ this.messageList.clear();
+ } else {
+ for(Message message : this.conversation.getMessages()) {
+ if (!this.messageList.contains(message)) {
+ this.messageList.add(message);
+ }
}
+ updateStatusMessages();
}
- updateStatusMessages();
this.messageListAdapter.notifyDataSetChanged();
if (conversation.getMode() == Conversation.MODE_SINGLE) {
if (messageList.size() >= 1) {