2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-03 16:15:13 +00:00

Allow emoji status edit from self profile.

This commit is contained in:
John Preston
2022-08-09 20:15:42 +03:00
parent 21fd381778
commit 165d3143de
9 changed files with 158 additions and 55 deletions

View File

@@ -232,11 +232,13 @@ InnerWidget::InnerWidget(
| UpdateFlag::Photo
| UpdateFlag::IsContact
| UpdateFlag::FullInfo
| UpdateFlag::EmojiStatus
) | rpl::start_with_next([=](const Data::PeerUpdate &update) {
if (update.flags
& (UpdateFlag::Name
| UpdateFlag::Photo
| UpdateFlag::FullInfo)) {
| UpdateFlag::FullInfo
| UpdateFlag::EmojiStatus)) {
const auto peer = update.peer;
const auto history = peer->owner().historyLoaded(peer);
if (_state == WidgetState::Default) {
@@ -2066,7 +2068,6 @@ void InnerWidget::visibleTopBottomUpdated(
_loadMoreCallback();
}
}
}
void InnerWidget::itemRemoved(not_null<const HistoryItem*> item) {