2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added auto-closing to some boxes which depend on certain message.

This commit is contained in:
23rd
2020-10-20 23:25:42 +03:00
committed by John Preston
parent bc7975ece7
commit bc8f8bc68c
4 changed files with 23 additions and 1 deletions

View File

@@ -363,6 +363,12 @@ EditCaptionBox::EditCaptionBox(
) | rpl::start_with_next([&](bool checked) {
_asFile = checked;
}, _wayWrap->lifetime());
_controller->session().data().itemRemoved(
_msgId
) | rpl::start_with_next([=] {
closeBox();
}, lifetime());
}
EditCaptionBox::~EditCaptionBox() = default;