Don't add author signature to posts on behalf of channel.
This commit is contained in:
parent
ef26678162
commit
0531816c6f
@ -23342,10 +23342,12 @@ unique_ptr<MessagesManager::Message> MessagesManager::create_message_to_send(
|
|||||||
}
|
}
|
||||||
if (is_channel_post && !is_scheduled && td_->chat_manager_->get_channel_sign_messages(dialog_id.get_channel_id())) {
|
if (is_channel_post && !is_scheduled && td_->chat_manager_->get_channel_sign_messages(dialog_id.get_channel_id())) {
|
||||||
auto show_message_sender = td_->chat_manager_->get_channel_show_message_sender(dialog_id.get_channel_id());
|
auto show_message_sender = td_->chat_manager_->get_channel_show_message_sender(dialog_id.get_channel_id());
|
||||||
m->author_signature = m->sender_dialog_id == dialog_id || m->sender_dialog_id == DialogId() ||
|
if (m->sender_dialog_id != dialog_id || !m->has_explicit_sender) {
|
||||||
(m->has_explicit_sender && !show_message_sender)
|
m->author_signature = m->sender_dialog_id == dialog_id || m->sender_dialog_id == DialogId() ||
|
||||||
? td_->user_manager_->get_user_title(my_id)
|
(m->has_explicit_sender && !show_message_sender)
|
||||||
: td_->dialog_manager_->get_dialog_title(m->sender_dialog_id);
|
? td_->user_manager_->get_user_title(my_id)
|
||||||
|
: td_->dialog_manager_->get_dialog_title(m->sender_dialog_id);
|
||||||
|
}
|
||||||
if (!show_message_sender) {
|
if (!show_message_sender) {
|
||||||
m->sender_user_id = UserId();
|
m->sender_user_id = UserId();
|
||||||
m->sender_dialog_id = dialog_id;
|
m->sender_dialog_id = dialog_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user