mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Fix crash in delete contact box creation.
This commit is contained in:
parent
1557b356f4
commit
a2e57de3a3
1 changed files with 2 additions and 1 deletions
|
@ -667,9 +667,10 @@ void Filler::addDeleteContact() {
|
|||
if (!user || !user->isContact() || user->isSelf()) {
|
||||
return;
|
||||
}
|
||||
const auto controller = _controller;
|
||||
_addAction(
|
||||
tr::lng_info_delete_contact(tr::now),
|
||||
[=] { PeerMenuDeleteContact(_controller, user); },
|
||||
[=] { PeerMenuDeleteContact(controller, user); },
|
||||
&st::menuIconDelete);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue