Add author_signature to messages with public sender.

This commit is contained in:
levlam 2024-08-08 21:20:16 +03:00
parent 5a99625f90
commit f9af5c8252

View File

@ -23293,11 +23293,11 @@ unique_ptr<MessagesManager::Message> MessagesManager::create_message_to_send(
if (td_->chat_manager_->get_channel_show_message_sender(dialog_id.get_channel_id())) {
m->sender_user_id = my_id;
} else {
if (!is_scheduled && td_->chat_manager_->get_channel_sign_messages(dialog_id.get_channel_id())) {
m->author_signature = td_->user_manager_->get_user_title(my_id);
}
m->sender_dialog_id = dialog_id;
}
if (!is_scheduled && td_->chat_manager_->get_channel_sign_messages(dialog_id.get_channel_id())) {
m->author_signature = td_->user_manager_->get_user_title(my_id);
}
} else {
if (send_as_dialog_id.is_valid()) {
if (send_as_dialog_id.get_type() == DialogType::User) {