From ea657ece0d9151cc912b955bb17306f99e603884 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Sat, 8 Nov 2014 20:51:27 +0100 Subject: update conversation fragment on every backend connect --- src/main/java/eu/siacs/conversations/ui/ConversationActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java index 2a4ddd2b..d02a7c7b 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java @@ -31,7 +31,6 @@ import android.widget.Toast; import java.util.ArrayList; import java.util.List; -import eu.siacs.conversations.Config; import eu.siacs.conversations.R; import eu.siacs.conversations.entities.Contact; import eu.siacs.conversations.entities.Conversation; @@ -684,7 +683,9 @@ public class ConversationActivity extends XmppActivity implements } this.mConversationFragment.reInit(getSelectedConversation()); mOpenConverstaion = null; - } else if (getSelectedConversation() == null) { + } else if (getSelectedConversation() != null) { + this.mConversationFragment.updateMessages(); + } else { showConversationsOverview(); mPendingImageUri = null; setSelectedConversation(conversationList.get(0)); -- cgit v1.2.3