Fixed processing of speaking action in channels to form recent speakers.
This commit is contained in:
parent
36d4de747f
commit
04736f363b
@ -6970,7 +6970,7 @@ void MessagesManager::on_update_delete_scheduled_messages(DialogId dialog_id,
|
|||||||
void MessagesManager::on_user_dialog_action(DialogId dialog_id, MessageId top_thread_message_id,
|
void MessagesManager::on_user_dialog_action(DialogId dialog_id, MessageId top_thread_message_id,
|
||||||
DialogId typing_dialog_id, DialogAction action, int32 date,
|
DialogId typing_dialog_id, DialogAction action, int32 date,
|
||||||
MessageContentType message_content_type) {
|
MessageContentType message_content_type) {
|
||||||
if (td_->auth_manager_->is_bot() || !typing_dialog_id.is_valid() || is_broadcast_channel(dialog_id)) {
|
if (td_->auth_manager_->is_bot() || !typing_dialog_id.is_valid()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (top_thread_message_id != MessageId() && !top_thread_message_id.is_valid()) {
|
if (top_thread_message_id != MessageId() && !top_thread_message_id.is_valid()) {
|
||||||
@ -6992,6 +6992,10 @@ void MessagesManager::on_user_dialog_action(DialogId dialog_id, MessageId top_th
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_broadcast_channel(dialog_id)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (typing_dialog_id.get_type() != DialogType::User) {
|
if (typing_dialog_id.get_type() != DialogType::User) {
|
||||||
LOG(ERROR) << "Ignore " << action << " of " << typing_dialog_id << " in " << dialog_id;
|
LOG(ERROR) << "Ignore " << action << " of " << typing_dialog_id << " in " << dialog_id;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user