mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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::flatten_latest(
|
||||||
) | rpl::start_with_next([=](DocumentData *icon) {
|
) | rpl::start_with_next([=](DocumentData *icon) {
|
||||||
state->icon = icon;
|
if (state->icon != icon) {
|
||||||
right->update();
|
state->icon = icon;
|
||||||
|
state->custom = nullptr;
|
||||||
|
right->update();
|
||||||
|
}
|
||||||
}, right->lifetime());
|
}, right->lifetime());
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Add table
Reference in a new issue