Don't always treat pins as mentions.
This commit is contained in:
parent
4bafdc2b71
commit
0aa8816c28
@ -13084,8 +13084,7 @@ std::pair<DialogId, unique_ptr<MessagesManager::Message>> MessagesManager::creat
|
||||
message->is_outgoing = is_outgoing;
|
||||
message->is_channel_post = is_channel_post;
|
||||
message->contains_mention = !is_outgoing && dialog_type != DialogType::User && !is_expired &&
|
||||
(message_info.has_mention || content_type == MessageContentType::PinMessage) &&
|
||||
!td_->auth_manager_->is_bot();
|
||||
message_info.has_mention && !td_->auth_manager_->is_bot();
|
||||
message->contains_unread_mention =
|
||||
!message_id.is_scheduled() && message_id.is_server() && message->contains_mention &&
|
||||
message_info.has_unread_content &&
|
||||
|
Loading…
Reference in New Issue
Block a user