Add author_signature to messages with public sender.
This commit is contained in:
parent
5a99625f90
commit
f9af5c8252
@ -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())) {
|
if (td_->chat_manager_->get_channel_show_message_sender(dialog_id.get_channel_id())) {
|
||||||
m->sender_user_id = my_id;
|
m->sender_user_id = my_id;
|
||||||
} else {
|
} else {
|
||||||
|
m->sender_dialog_id = dialog_id;
|
||||||
|
}
|
||||||
if (!is_scheduled && td_->chat_manager_->get_channel_sign_messages(dialog_id.get_channel_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);
|
m->author_signature = td_->user_manager_->get_user_title(my_id);
|
||||||
}
|
}
|
||||||
m->sender_dialog_id = dialog_id;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (send_as_dialog_id.is_valid()) {
|
if (send_as_dialog_id.is_valid()) {
|
||||||
if (send_as_dialog_id.get_type() == DialogType::User) {
|
if (send_as_dialog_id.get_type() == DialogType::User) {
|
||||||
|
Loading…
Reference in New Issue
Block a user