From d77afef8b05c633be1b23bdeab61b701165e5447 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 6 Dec 2017 18:41:37 +0400 Subject: [PATCH] Hide Share contact button in saved messages. --- Telegram/SourceFiles/window/window_peer_menu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/window/window_peer_menu.cpp b/Telegram/SourceFiles/window/window_peer_menu.cpp index e3b5f6c483..8368170c6e 100644 --- a/Telegram/SourceFiles/window/window_peer_menu.cpp +++ b/Telegram/SourceFiles/window/window_peer_menu.cpp @@ -263,10 +263,10 @@ void Filler::addBlockUser(not_null user) { void Filler::addUserActions(not_null user) { if (_source != PeerMenuSource::ChatsList) { if (user->isContact()) { - _addAction( - lang(lng_info_share_contact), - [user] { PeerMenuShareContactBox(user); }); if (!user->isSelf()) { + _addAction( + lang(lng_info_share_contact), + [user] { PeerMenuShareContactBox(user); }); _addAction( lang(lng_info_edit_contact), [user] { Ui::show(Box(user)); });