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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user