2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Remove some calls to Auth().

This commit is contained in:
John Preston
2019-07-24 13:13:51 +02:00
parent 9cf4cf6dca
commit 06982fdf04
39 changed files with 573 additions and 444 deletions

View File

@@ -60,7 +60,7 @@ public:
void createManager();
void checkDelayed();
void schedule(History *history, HistoryItem *item);
void schedule(not_null<History*> history, not_null<HistoryItem*> item);
void clearFromHistory(History *history);
void clearFromItem(HistoryItem *item);
void clearAll();
@@ -117,7 +117,7 @@ private:
class Manager {
public:
Manager(System *system) : _system(system) {
explicit Manager(not_null<System*> system) : _system(system) {
}
void showNotification(HistoryItem *item, int forwardedCount) {
@@ -155,7 +155,7 @@ public:
virtual ~Manager() = default;
protected:
System *system() const {
not_null<System*> system() const {
return _system;
}
@@ -175,7 +175,7 @@ private:
not_null<History*> history,
MsgId messageId);
System *_system = nullptr;
const not_null<System*> _system;
};