mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Fix crash in delete contact box creation.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user