mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-13 04:37:11 +02:00
Fix emoji status set cancel.
Fixes #28674. Fixes https://bugs.telegram.org/c/45691.
This commit is contained in:
parent
e70f50d837
commit
9532a2e3da
1 changed files with 4 additions and 3 deletions
|
@ -639,12 +639,13 @@ void ConfirmEmojiStatusBox(
|
|||
done(true);
|
||||
});
|
||||
box->addButton(tr::lng_cancel(), [=] {
|
||||
const auto was = *set;
|
||||
box->closeBox();
|
||||
if (!was) {
|
||||
});
|
||||
box->boxClosing() | rpl::start_with_next([=] {
|
||||
if (!*set) {
|
||||
done(false);
|
||||
}
|
||||
});
|
||||
}, box->lifetime());
|
||||
}
|
||||
|
||||
class BotAction final : public Ui::Menu::ItemBase {
|
||||
|
|
Loading…
Add table
Reference in a new issue