2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Process gift updates in list.

This commit is contained in:
John Preston
2024-09-24 23:00:22 +04:00
parent 779e9b658b
commit 962d4d29ee
12 changed files with 177 additions and 34 deletions

View File

@@ -175,6 +175,15 @@ void History::itemVanished(not_null<HistoryItem*> item) {
&& unreadCount() > 0) {
setUnreadCount(unreadCount() - 1);
}
if (const auto media = item->media()) {
if (const auto gift = media->gift()) {
using GiftAction = Data::GiftUpdate::Action;
owner().notifyGiftUpdate({
.itemId = item->fullId(),
.action = GiftAction::Delete,
});
}
}
}
void History::takeLocalDraft(not_null<History*> from) {