Add contact opens chat in support mode.

This commit is contained in:
John Preston 2018-11-21 10:51:49 +04:00
parent 90c1c21646
commit a1c61daea6

View File

@ -275,7 +275,8 @@ void AddContactBox::onImportDone(const MTPcontacts_ImportedContacts &res) {
return nullptr;
}();
if (user) {
if (user->contactStatus() == UserData::ContactStatus::Contact) {
if (user->contactStatus() == UserData::ContactStatus::Contact
|| Auth().supportMode()) {
Ui::showPeerHistory(user, ShowAtTheEndMsgId);
}
Ui::hideLayer();