Don't add dummy message sender for bots on TDLib's side.
GitOrigin-RevId: d1ab4f7ca2739d30b0960f655478404d34d40757
This commit is contained in:
parent
348fdf1a31
commit
a57d9ccbea
@ -12529,9 +12529,9 @@ std::pair<DialogId, unique_ptr<MessagesManager::Message>> MessagesManager::creat
|
||||
}
|
||||
if (!is_broadcast_channel(dialog_id) && td_->auth_manager_->is_bot()) {
|
||||
if (dialog_id == sender_dialog_id) {
|
||||
sender_user_id = td_->contacts_manager_->add_anonymous_bot_user();
|
||||
td_->contacts_manager_->add_anonymous_bot_user();
|
||||
} else {
|
||||
sender_user_id = td_->contacts_manager_->add_service_notifications_user();
|
||||
td_->contacts_manager_->add_service_notifications_user();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user