2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Display check on the active account.

This commit is contained in:
John Preston
2020-06-23 13:20:38 +04:00
parent 51c2bc7349
commit 34ef54e40b
13 changed files with 91 additions and 27 deletions

View File

@@ -92,6 +92,15 @@ Session::Session(
_api->instance().setUserPhone(_user->phone());
// Load current userpic and keep it loaded.
changes().peerFlagsValue(
_user,
Data::PeerUpdate::Flag::Photo
) | rpl::start_with_next([=] {
[[maybe_unused]] const auto image = _user->currentUserpic(
_selfUserpicView);
}, lifetime());
crl::on_main(this, [=] {
using Flag = Data::PeerUpdate::Flag;
changes().peerUpdates(