2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

Display and follow unread mentions in history.

This commit is contained in:
John Preston
2017-08-11 09:16:07 +02:00
parent 7ad21ff713
commit e209737b1a
31 changed files with 747 additions and 357 deletions

View File

@@ -1458,6 +1458,7 @@ void DialogsInner::dialogsReceived(const QVector<MTPDialog> &added) {
}
auto history = App::historyFromDialog(peerId, d.vunread_count.v, d.vread_inbox_max_id.v, d.vread_outbox_max_id.v);
history->setUnreadMentionsCount(d.vunread_mentions_count.v);
auto peer = history->peer;
if (auto channel = peer->asChannel()) {
if (d.has_pts()) {