Fix warning.
GitOrigin-RevId: 07ec6a5dabf6aeb480564285e56240ff45642e63
This commit is contained in:
parent
b3d3075c08
commit
71d6963e50
@ -23505,10 +23505,14 @@ bool MessagesManager::update_message(Dialog *d, unique_ptr<Message> &old_message
|
|||||||
<< " to " << new_message->is_channel_post << ", message content type is " << old_message->content->get_type()
|
<< " to " << new_message->is_channel_post << ", message content type is " << old_message->content->get_type()
|
||||||
<< '/' << new_message->content->get_type();
|
<< '/' << new_message->content->get_type();
|
||||||
if (old_message->contains_mention != new_message->contains_mention) {
|
if (old_message->contains_mention != new_message->contains_mention) {
|
||||||
LOG_IF(ERROR, old_message->edit_date == 0 && is_new_available)
|
auto old_type = old_message->content->get_type();
|
||||||
<< message_id << " in " << dialog_id << " has changed contains_mention from " << old_message->contains_mention
|
if (old_message->edit_date == 0 && is_new_available && old_type != MessageContentType::PinMessage &&
|
||||||
<< " to " << new_message->contains_mention << ", is_outgoing = " << old_message->is_outgoing
|
old_type != MessageContentType::ExpiredPhoto && old_type != MessageContentType::ExpiredVideo) {
|
||||||
<< ", message content type is " << old_message->content->get_type() << '/' << new_message->content->get_type();
|
LOG(ERROR) << message_id << " in " << dialog_id << " has changed contains_mention from "
|
||||||
|
<< old_message->contains_mention << " to " << new_message->contains_mention
|
||||||
|
<< ", is_outgoing = " << old_message->is_outgoing << ", message content type is "
|
||||||
|
<< old_type << '/' << new_message->content->get_type();
|
||||||
|
}
|
||||||
// contains_mention flag shouldn't be changed, because the message will not be added to unread mention list
|
// contains_mention flag shouldn't be changed, because the message will not be added to unread mention list
|
||||||
// and we are unable to show/hide message notification
|
// and we are unable to show/hide message notification
|
||||||
// old_message->contains_mention = new_message->contains_mention;
|
// old_message->contains_mention = new_message->contains_mention;
|
||||||
|
Reference in New Issue
Block a user