mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix set icon in updating group emoji set.
This commit is contained in:
parent
13ded3a82e
commit
2a52eca5f5
1 changed files with 5 additions and 2 deletions
|
@ -1036,8 +1036,11 @@ struct ButtonWithEmoji {
|
|||
}));
|
||||
}) | rpl::flatten_latest(
|
||||
) | rpl::start_with_next([=](DocumentData *icon) {
|
||||
state->icon = icon;
|
||||
right->update();
|
||||
if (state->icon != icon) {
|
||||
state->icon = icon;
|
||||
state->custom = nullptr;
|
||||
right->update();
|
||||
}
|
||||
}, right->lifetime());
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Add table
Reference in a new issue