mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Replace App::self() with Auth().user().
Always have self Auth().user() when AuthSession exists.
This commit is contained in:
@@ -119,7 +119,7 @@ void activateBotCommand(
|
||||
Ui::showPeerHistory(history, ShowAtTheEndMsgId);
|
||||
auto options = ApiWrap::SendOptions(history);
|
||||
options.replyTo = msgId;
|
||||
Auth().api().shareContact(App::self(), options);
|
||||
Auth().api().shareContact(Auth().user(), options);
|
||||
}));
|
||||
} break;
|
||||
|
||||
@@ -551,8 +551,6 @@ struct Data {
|
||||
|
||||
CircleMasksMap CircleMasks;
|
||||
|
||||
base::Observable<void> SelfChanged;
|
||||
|
||||
bool AskDownloadPath = false;
|
||||
QString DownloadPath;
|
||||
QByteArray DownloadPathBookmark;
|
||||
@@ -681,8 +679,6 @@ DefineVar(Global, Stickers::Order, ArchivedStickerSetsOrder);
|
||||
|
||||
DefineRefVar(Global, CircleMasksMap, CircleMasks);
|
||||
|
||||
DefineRefVar(Global, base::Observable<void>, SelfChanged);
|
||||
|
||||
DefineVar(Global, bool, AskDownloadPath);
|
||||
DefineVar(Global, QString, DownloadPath);
|
||||
DefineVar(Global, QByteArray, DownloadPathBookmark);
|
||||
|
Reference in New Issue
Block a user