Fix a crash in sharing contact.

Fixes #25287.
This commit is contained in:
John Preston 2022-11-07 23:19:52 +04:00
parent 7993c6207a
commit aa6495a257
1 changed files with 1 additions and 1 deletions

View File

@ -679,7 +679,7 @@ void ActionsFiller::addInviteToGroupAction(
}
void ActionsFiller::addShareContactAction(not_null<UserData*> user) {
const auto controller = _controller;
const auto controller = _controller->parentController();
AddActionButton(
_wrap,
tr::lng_info_share_contact(),