Update TDLib to 1.7.7.

This commit is contained in:
levlam 2021-09-08 17:21:28 +03:00
parent 937fa526b9
commit 40ff6f637b
2 changed files with 8 additions and 3 deletions

2
td

@ -1 +1 @@
Subproject commit 91f8bb48ac9507439993919461ed470b6268e051
Subproject commit c582ab0bbfaa9ed2566de501f7e03b65a4c3613c

View File

@ -458,7 +458,8 @@ class Client::JsonVectorEntities : public Jsonable {
void store(JsonValueScope *scope) const {
auto array = scope->enter_array();
for (auto &entity : entities_) {
if (entity->type_->get_id() != td_api::textEntityTypeBankCardNumber::ID) {
auto entity_type = entity->type_->get_id();
if (entity_type != td_api::textEntityTypeBankCardNumber::ID && entity_type != td_api::textEntityTypeMediaTimestamp::ID) {
array << JsonEntity(entity.get(), client_);
}
}
@ -1838,6 +1839,8 @@ void Client::JsonMessage::store(JsonValueScope *scope) const {
break;
case td_api::messageCustomServiceAction::ID:
break;
case td_api::messageChatSetTheme::ID:
break;
case td_api::messageWebsiteConnected::ID: {
auto chat = client_->get_chat(message_->chat_id);
if (chat->type != ChatInfo::Type::Private) {
@ -4401,7 +4404,7 @@ void Client::on_update(object_ptr<td_api::Object> result) {
add_update_chat_member(move_object_as<td_api::updateChatMember>(result));
break;
default:
// we are not interested in this updates
// we are not interested in this update
break;
}
}
@ -8920,6 +8923,8 @@ bool Client::need_skip_update_message(int64 chat_id, const object_ptr<td_api::me
return true;
case td_api::messageCustomServiceAction::ID:
return true;
case td_api::messageChatSetTheme::ID:
return true;
default:
break;
}