2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 23:55:12 +00:00

History::dialogs and Histories::unread are private now, counting only chats from dialogs list to the badge

This commit is contained in:
John Preston
2016-02-28 14:58:30 +03:00
parent 7338c3e21e
commit 798f800913
12 changed files with 213 additions and 97 deletions

View File

@@ -785,8 +785,8 @@ void MainWidget::notify_clipStopperHidden(ClipStopperType type) {
void MainWidget::ui_repaintHistoryItem(const HistoryItem *item) {
history.ui_repaintHistoryItem(item);
if (!item->history()->dialogs.isEmpty() && item->history()->lastMsg == item) {
dialogs.dlgUpdated(item->history()->dialogs[0]);
if (item->history()->lastMsg == item) {
item->history()->updateChatListEntry();
}
if (overview) overview->ui_repaintHistoryItem(item);
}
@@ -4246,9 +4246,7 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
if (h->lastMsg && h->lastMsg->out() && h->lastMsg->id <= d.vmax_id.v) {
dlgUpdated(h, h->lastMsg->id);
}
if (!h->dialogs.isEmpty()) {
dlgUpdated(h->dialogs[0]);
}
h->updateChatListEntry();
}
ptsApplySkippedUpdates();