@Override public void addConversationStoreObserverAndUpdate( ConversationStoreObserver conversationStoreObserver) { addConversationStoreObserver(conversationStoreObserver); if (selectedConversation != null) { conversationStoreObserver.onCurrentConversationHasChanged( null, selectedConversation, ConversationChangeRequester.UPDATER); conversationStoreObserver.onConversationSyncingStateHasChanged(getConversationSyncingState()); } if (conversationsList != null) { conversationStoreObserver.onConversationListUpdated(conversationsList); } }
private void notifyConversationListUpdated() { for (ConversationStoreObserver conversationStoreObserver : conversationStoreObservers) { conversationStoreObserver.onConversationListUpdated(conversationsList); } }