mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 08:35:21 +00:00
Hide Share contact button in saved messages.
This commit is contained in:
@@ -263,10 +263,10 @@ void Filler::addBlockUser(not_null<UserData*> user) {
|
|||||||
void Filler::addUserActions(not_null<UserData*> user) {
|
void Filler::addUserActions(not_null<UserData*> user) {
|
||||||
if (_source != PeerMenuSource::ChatsList) {
|
if (_source != PeerMenuSource::ChatsList) {
|
||||||
if (user->isContact()) {
|
if (user->isContact()) {
|
||||||
_addAction(
|
|
||||||
lang(lng_info_share_contact),
|
|
||||||
[user] { PeerMenuShareContactBox(user); });
|
|
||||||
if (!user->isSelf()) {
|
if (!user->isSelf()) {
|
||||||
|
_addAction(
|
||||||
|
lang(lng_info_share_contact),
|
||||||
|
[user] { PeerMenuShareContactBox(user); });
|
||||||
_addAction(
|
_addAction(
|
||||||
lang(lng_info_edit_contact),
|
lang(lng_info_edit_contact),
|
||||||
[user] { Ui::show(Box<AddContactBox>(user)); });
|
[user] { Ui::show(Box<AddContactBox>(user)); });
|
||||||
|
Reference in New Issue
Block a user