Add DialogAction::get_typing_action().
GitOrigin-RevId: a2abad1076b6a54135ee945f8f75a0f8b2c04af7
This commit is contained in:
parent
711b0cfd4f
commit
8c4a9e7553
@ -331,6 +331,10 @@ DialogAction DialogAction::get_uploading_action(MessageContentType message_conte
|
||||
}
|
||||
}
|
||||
|
||||
DialogAction DialogAction::get_typing_action() {
|
||||
return DialogAction(Type::Typing, 0);
|
||||
}
|
||||
|
||||
StringBuilder &operator<<(StringBuilder &string_builder, const DialogAction &action) {
|
||||
string_builder << "ChatAction";
|
||||
const char *type = [action_type = action.type_] {
|
||||
|
@ -55,6 +55,8 @@ class DialogAction {
|
||||
|
||||
static DialogAction get_uploading_action(MessageContentType message_content_type, int32 progress);
|
||||
|
||||
static DialogAction get_typing_action();
|
||||
|
||||
private:
|
||||
void init(Type type);
|
||||
void init(Type type, int32 progress);
|
||||
|
@ -1898,8 +1898,8 @@ void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateEncryptedChatTy
|
||||
return;
|
||||
}
|
||||
|
||||
td_->messages_manager_->on_user_dialog_action(dialog_id, MessageId(), user_id,
|
||||
DialogAction(DialogAction::Type::Typing, 0), get_short_update_date());
|
||||
td_->messages_manager_->on_user_dialog_action(dialog_id, MessageId(), user_id, DialogAction::get_typing_action(),
|
||||
get_short_update_date());
|
||||
}
|
||||
|
||||
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateUserStatus> update, bool /*force_apply*/) {
|
||||
|
Loading…
Reference in New Issue
Block a user