mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fixed ability to attach file while editing message in sections.
This commit is contained in:
parent
4695ccfdb8
commit
4ad0837661
1 changed files with 8 additions and 1 deletions
|
@ -767,7 +767,14 @@ rpl::producer<MessageToEdit> ComposeControls::editRequests() const {
|
|||
}
|
||||
|
||||
rpl::producer<> ComposeControls::attachRequests() const {
|
||||
return _attachToggle->clicks() | rpl::to_empty;
|
||||
return _attachToggle->clicks(
|
||||
) | rpl::to_empty | rpl::filter([=] {
|
||||
if (isEditingMessage()) {
|
||||
Ui::show(Box<InformBox>(tr::lng_edit_caption_attach(tr::now)));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
void ComposeControls::setMimeDataHook(MimeDataHook hook) {
|
||||
|
|
Loading…
Add table
Reference in a new issue