mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Move all (item/view/media) maps to Data::Session.
This commit is contained in:
@@ -469,12 +469,10 @@ void PeerMenuDeleteContact(not_null<UserData*> user) {
|
||||
}
|
||||
|
||||
void PeerMenuAddContact(not_null<UserData*> user) {
|
||||
auto firstName = user->firstName;
|
||||
auto lastName = user->lastName;
|
||||
auto phone = user->phone().isEmpty()
|
||||
? App::phoneFromSharedContact(user->bareId())
|
||||
: user->phone();
|
||||
Ui::show(Box<AddContactBox>(firstName, lastName, phone));
|
||||
Ui::show(Box<AddContactBox>(
|
||||
user->firstName,
|
||||
user->lastName,
|
||||
Auth().data().findContactPhone(user)));
|
||||
}
|
||||
|
||||
void PeerMenuShareContactBox(not_null<UserData*> user) {
|
||||
|
Reference in New Issue
Block a user