Merge branch 'AyuGram:dev' into upstream-pr

This commit is contained in:
People-11 2025-07-05 02:23:27 +09:30 committed by GitHub
commit 82e6145f3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,14 +207,19 @@ void AddHideMessageAction(not_null<Ui::PopupMenu*> menu, HistoryItem *item) {
}
const auto history = item->history();
const auto owner = &history->owner();
menu->addAction(
tr::ayu_ContextHideMessage(tr::now),
[=]()
{
item->destroy();
const auto ids = owner->itemOrItsGroup(item);
for (const auto &fullId : ids) {
if (const auto current = owner->message(fullId)) {
current->destroy();
AyuState::hide(current);
}
}
history->requestChatListMessage();
AyuState::hide(item);
},
&st::menuIconClear);
}