|
|
@ -1081,11 +1081,13 @@ export class AppDialogsManager { |
|
|
|
//dom.unreadMessagesSpan.innerText = '' + (dialog.unread_count ? formatNumber(dialog.unread_count, 1) : ' ');
|
|
|
|
//dom.unreadMessagesSpan.innerText = '' + (dialog.unread_count ? formatNumber(dialog.unread_count, 1) : ' ');
|
|
|
|
dom.unreadMessagesSpan.innerText = '' + (dialog.unread_count || ' '); |
|
|
|
dom.unreadMessagesSpan.innerText = '' + (dialog.unread_count || ' '); |
|
|
|
dom.unreadMessagesSpan.classList.add('unread'); |
|
|
|
dom.unreadMessagesSpan.classList.add('unread'); |
|
|
|
} else if(isPinned) { |
|
|
|
} else { |
|
|
|
dom.unreadMessagesSpan.classList.remove('unread'); |
|
|
|
dom.unreadMessagesSpan.classList.remove('unread'); |
|
|
|
|
|
|
|
if(isPinned) { |
|
|
|
dom.unreadMessagesSpan.classList.add('tgico-pinnedchat'); |
|
|
|
dom.unreadMessagesSpan.classList.add('tgico-pinnedchat'); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private accumulateArchivedUnread() { |
|
|
|
private accumulateArchivedUnread() { |
|
|
|
if(this.accumulateArchivedTimeout) return; |
|
|
|
if(this.accumulateArchivedTimeout) return; |
|
|
|