Fix set icon in updating group emoji set.

This commit is contained in:
John Preston 2024-02-18 20:21:03 +04:00
parent 13ded3a82e
commit 2a52eca5f5
1 changed files with 5 additions and 2 deletions

View File

@ -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;