mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Always keep current self-userpic loaded.
This commit is contained in:
@@ -400,6 +400,15 @@ MainWidget::MainWidget(
|
||||
floatPlayerClosed(itemId);
|
||||
}, lifetime());
|
||||
|
||||
// Load current userpic and keep it loaded.
|
||||
Notify::PeerUpdateValue(
|
||||
session().user(),
|
||||
Notify::PeerUpdate::Flag::PhotoChanged
|
||||
) | rpl::start_with_next([=] {
|
||||
[[maybe_unused]] const auto image = session().user()->currentUserpic(
|
||||
_selfUserpicView);
|
||||
}, lifetime());
|
||||
|
||||
_ptsWaiter.setRequesting(true);
|
||||
updateScrollColors();
|
||||
setupConnectingWidget();
|
||||
|
Reference in New Issue
Block a user