unReadCount method
dynamic
unReadCount()
Implementation
unReadCount() {
_unreadCount(0);
recentPinnedCount(0);
for (var p0 in recentChats) {
if (p0.isConversationUnRead!) {
_unreadCount(((p0.isConversationUnRead!)
? 1 + _unreadCount.value
: 0 + _unreadCount.value));
}
if (p0.isChatPinned.checkNull()) {
recentPinnedCount(recentPinnedCount.value + 1);
}
}
/*LogMessage.d("recentPinned", recentChats.where((element) => (element.isChatPinned.checkNull()==true)).join(","));
recentPinnedCount(recentChats.where((element) => (element.isChatPinned.checkNull()==true)).length);*/
}