Fix RepliedMessageInfo::need_reply_changed_warning.
This commit is contained in:
parent
4a29cd7f00
commit
a60d6f5dfb
@ -221,11 +221,8 @@ bool RepliedMessageInfo::need_reply_changed_warning(
|
|||||||
if (old_info.is_quote_manual_) {
|
if (old_info.is_quote_manual_) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
auto max_size = td->option_manager_->get_option_integer("message_reply_quote_length_max") - 70;
|
// automatic quote can change if the original message was edited
|
||||||
if (static_cast<int64>(max(old_info.quote_.text.size(), new_info.quote_.text.size())) < max_size) {
|
return false;
|
||||||
// automatic quote can't change, unless truncated differently
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (old_info.dialog_id_ != new_info.dialog_id_ && old_info.dialog_id_ != DialogId() &&
|
if (old_info.dialog_id_ != new_info.dialog_id_ && old_info.dialog_id_ != DialogId() &&
|
||||||
new_info.dialog_id_ != DialogId()) {
|
new_info.dialog_id_ != DialogId()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user