2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Implement a new AddToContactBox.

This commit is contained in:
John Preston
2019-06-10 17:47:22 +02:00
parent 213a8d888a
commit 08d4715ad6
9 changed files with 277 additions and 12 deletions

View File

@@ -14,6 +14,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "boxes/report_box.h"
#include "boxes/create_poll_box.h"
#include "boxes/peers/add_participants_box.h"
#include "boxes/peers/add_to_contacts_box.h"
#include "ui/toast/toast.h"
#include "auth_session.h"
#include "apiwrap.h"
@@ -628,10 +629,7 @@ void PeerMenuDeleteContact(not_null<UserData*> user) {
}
void PeerMenuAddContact(not_null<UserData*> user) {
Ui::show(Box<AddContactBox>(
user->firstName,
user->lastName,
Auth().data().findContactPhone(user)));
Ui::show(Box<AddToContactsBox>(&App::wnd()->controller(), user));
}
void PeerMenuShareContactBox(not_null<UserData*> user) {