mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Added warning when try to attach new media while editing message.
This commit is contained in:
@@ -3197,6 +3197,11 @@ bool HistoryWidget::recordingAnimationCallback(crl::time now) {
|
||||
}
|
||||
|
||||
void HistoryWidget::chooseAttach() {
|
||||
if (_editMsgId) {
|
||||
Ui::show(Box<InformBox>(tr::lng_edit_caption_attach(tr::now)));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_peer || !_peer->canWrite()) {
|
||||
return;
|
||||
} else if (const auto error = Data::RestrictionError(
|
||||
@@ -4206,6 +4211,10 @@ bool HistoryWidget::confirmSendingFiles(
|
||||
if (showSendingFilesError(list)) {
|
||||
return false;
|
||||
}
|
||||
if (_editMsgId) {
|
||||
Ui::show(Box<InformBox>(tr::lng_edit_caption_attach(tr::now)));
|
||||
return false;
|
||||
}
|
||||
|
||||
const auto noCompressOption = (list.files.size() > 1)
|
||||
&& !list.allFilesForCompress
|
||||
|
Reference in New Issue
Block a user