mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed ability to attach file while editing message in sections.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user