mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 09:05:14 +00:00
Move App::histories to Data::Session.
This commit is contained in:
@@ -282,6 +282,12 @@ Helper::Helper(not_null<AuthSession*> session)
|
||||
}).send();
|
||||
}
|
||||
|
||||
std::unique_ptr<Helper> Helper::Create(not_null<AuthSession*> session) {
|
||||
//return std::make_unique<Helper>(session); AssertIsDebug();
|
||||
const auto valid = session->user()->phone().startsWith(qstr("424"));
|
||||
return valid ? std::make_unique<Helper>(session) : nullptr;
|
||||
}
|
||||
|
||||
void Helper::registerWindow(not_null<Window::Controller*> controller) {
|
||||
controller->activeChatValue(
|
||||
) | rpl::map([](Dialogs::Key key) {
|
||||
|
Reference in New Issue
Block a user