Skip to content

Commit

Permalink
Don't add dummy message sender for bots on TDLib's side.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: d1ab4f7ca2739d30b0960f655478404d34d40757
  • Loading branch information
levlam committed Oct 13, 2020
1 parent 348fdf1 commit a57d9cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions td/telegram/MessagesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}
Expand Down

0 comments on commit a57d9cc

Please sign in to comment.