markConversationReadNotifyUI method

void markConversationReadNotifyUI(
  1. String jid
)

Implementation

void markConversationReadNotifyUI(String jid) {
  var index = recentChats.indexWhere((element) => element.jid == jid);
  if (!index.isNegative) {
    if (recentChats[index].isConversationUnRead.checkNull()) {
      recentChats[index].isConversationUnRead = false;
      recentChats[index].unreadMessageCount = 0;
      recentChats.refresh();
    }
  }
}