Fix formatting.

GitOrigin-RevId: 32bc29dbf8eb0fe6fa4c4eacad8bb57acc698830
This commit is contained in:
levlam 2018-01-31 16:49:28 +03:00
parent 5c81c0ddb2
commit aa3f1eac49

View File

@ -13787,8 +13787,8 @@ Result<InputMessageText> MessagesManager::process_input_message_text(
auto input_message_text = static_cast<td_api::inputMessageText *>(input_message_content.get());
if (input_message_text->text_ == nullptr) {
if (for_draft) {
return InputMessageText{FormattedText{},
input_message_text->disable_web_page_preview_, input_message_text->clear_draft_};
return InputMessageText{FormattedText{}, input_message_text->disable_web_page_preview_,
input_message_text->clear_draft_};
}
return Status::Error(400, "Message text can't be empty");
@ -20288,7 +20288,7 @@ unique_ptr<MessageContent> MessagesManager::get_message_content(FormattedText me
case telegram_api::messageMediaContact::ID: {
auto message_contact = move_tl_object_as<telegram_api::messageMediaContact>(media);
if (message_contact->user_id_ != 0) {
td_->contacts_manager_->get_user_id_object(UserId(message_contact->user_id_)); // to ensure updateUser
td_->contacts_manager_->get_user_id_object(UserId(message_contact->user_id_)); // to ensure updateUser
}
return make_unique<MessageContact>(Contact(message_contact->phone_number_, message_contact->first_name_,
message_contact->last_name_, message_contact->user_id_));