Hide Share contact button in saved messages.

This commit is contained in:
John Preston 2017-12-06 18:41:37 +04:00
parent 775cede16f
commit d77afef8b0
1 changed files with 3 additions and 3 deletions

View File

@ -263,10 +263,10 @@ void Filler::addBlockUser(not_null<UserData*> user) {
void Filler::addUserActions(not_null<UserData*> 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<AddContactBox>(user)); });