Hide share contact button if phone is hidden

This commit is contained in:
Eduard Kuzmenko 2022-01-22 10:52:45 +04:00
parent dbecd32d69
commit 3006054912

View File

@ -447,7 +447,7 @@ export default class ChatTopbar {
selfPresence: 'ChatYourSelf' selfPresence: 'ChatYourSelf'
}); });
}, },
verify: () => rootScope.myId !== this.peerId && this.peerId.isUser() && this.appPeersManager.isContact(this.peerId) verify: () => rootScope.myId !== this.peerId && this.peerId.isUser() && this.appPeersManager.isContact(this.peerId) && !!this.appUsersManager.getUser(this.peerId.toUserId()).phone
}, { }, {
icon: 'lock', icon: 'lock',
text: 'BlockUser', text: 'BlockUser',