Fix crash in delete contact box creation.

This commit is contained in:
John Preston 2022-03-06 14:44:00 +04:00
parent 1557b356f4
commit a2e57de3a3
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}