mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Fixed possible crash on deleting messages.
This commit is contained in:
parent
c21125f9f2
commit
4895e5e110
1 changed files with 4 additions and 1 deletions
|
@ -860,9 +860,12 @@ void DeleteMessagesBox::deleteAndClear() {
|
|||
_deleteConfirmedCallback();
|
||||
}
|
||||
|
||||
// deleteMessages can initiate closing of the current section,
|
||||
// which will cause this box to be destroyed.
|
||||
const auto session = _session;
|
||||
|
||||
_session->data().histories().deleteMessages(_ids, revoke);
|
||||
|
||||
const auto session = _session;
|
||||
Ui::hideLayer();
|
||||
session->data().sendHistoryChangeNotifications();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue