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

Pass Main::Session to click handler creators.

This commit is contained in:
John Preston
2020-06-09 13:36:40 +04:00
parent fc174f742a
commit 03dec15e8e
21 changed files with 117 additions and 93 deletions

View File

@@ -335,16 +335,11 @@ public:
not_null<DocumentData*> document,
FullMsgId context = FullMsgId());
[[nodiscard]] bool valid() const {
return !_session.empty();
}
[[nodiscard]] not_null<DocumentData*> document() const {
return _document;
}
private:
const base::weak_ptr<Main::Session> _session;
const not_null<DocumentData*> _document;
};