示例#1
0
 @Subscribe
 public void conversationMarkedAsRead(ReadEvent event) {
   for (Conversation conversation : this.conversations) {
     if (conversation.getId().equals(event.getConversationId())) {
       this.conversations.remove(conversation);
       this.unreadCount--;
       break;
     }
   }
   if (this.conversations.size() == 1 && this.unreadCount > this.conversations.size()) {
     getUnreadConversations();
   }
 }