mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Added warning when try to attach new media while editing message.
This commit is contained in:
@@ -166,6 +166,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
|
|
||||||
"lng_edit_media_album_error" = "This file cannot be saved as a part of an album.";
|
"lng_edit_media_album_error" = "This file cannot be saved as a part of an album.";
|
||||||
"lng_edit_media_invalid_file" = "Sorry, no way to use this file.";
|
"lng_edit_media_invalid_file" = "Sorry, no way to use this file.";
|
||||||
|
"lng_edit_caption_attach" = "Sorry, you can't attach a new media while you're editing your message.";
|
||||||
|
|
||||||
"lng_intro_about" = "Welcome to the official Telegram Desktop app.\nIt's fast and secure.";
|
"lng_intro_about" = "Welcome to the official Telegram Desktop app.\nIt's fast and secure.";
|
||||||
"lng_start_msgs" = "START MESSAGING";
|
"lng_start_msgs" = "START MESSAGING";
|
||||||
|
@@ -3197,6 +3197,11 @@ bool HistoryWidget::recordingAnimationCallback(crl::time now) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void HistoryWidget::chooseAttach() {
|
void HistoryWidget::chooseAttach() {
|
||||||
|
if (_editMsgId) {
|
||||||
|
Ui::show(Box<InformBox>(tr::lng_edit_caption_attach(tr::now)));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!_peer || !_peer->canWrite()) {
|
if (!_peer || !_peer->canWrite()) {
|
||||||
return;
|
return;
|
||||||
} else if (const auto error = Data::RestrictionError(
|
} else if (const auto error = Data::RestrictionError(
|
||||||
@@ -4206,6 +4211,10 @@ bool HistoryWidget::confirmSendingFiles(
|
|||||||
if (showSendingFilesError(list)) {
|
if (showSendingFilesError(list)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (_editMsgId) {
|
||||||
|
Ui::show(Box<InformBox>(tr::lng_edit_caption_attach(tr::now)));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
const auto noCompressOption = (list.files.size() > 1)
|
const auto noCompressOption = (list.files.size() > 1)
|
||||||
&& !list.allFilesForCompress
|
&& !list.allFilesForCompress
|
||||||
|
Reference in New Issue
Block a user