2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Process unread reactions to unknown messages.

This commit is contained in:
John Preston
2022-01-28 17:11:38 +03:00
parent 51c805d77a
commit 4e9a52343f
4 changed files with 39 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_folder.h"
#include "data/data_scheduled_messages.h"
#include "data/data_send_action.h"
#include "data/data_message_reactions.h"
#include "chat_helpers/emoji_interactions.h"
#include "lang/lang_cloud_manager.h"
#include "history/history.h"
@@ -1632,6 +1633,8 @@ void Updates::feedUpdate(const MTPUpdate &update) {
d.vmsg_id().v);
if (item) {
item->updateReactions(&d.vreactions());
} else if (Data::Reactions::HasUnread(d.vreactions())) {
history->owner().histories().requestDialogEntry(history);
}
}
} break;