Fix warnings.

GitOrigin-RevId: 19e068a8579356722d116a7646980cf580721b7a
This commit is contained in:
levlam 2018-09-22 02:15:13 +03:00
parent b11542ce6a
commit a4d5cc9419

View File

@ -16229,6 +16229,7 @@ Status MessagesManager::can_send_message_content(DialogId dialog_id, const Messa
return Status::Error(400, "Not enough rights to send voice notes to the chat");
}
break;
case MessageContentType::None:
case MessageContentType::ChatCreate:
case MessageContentType::ChatChangeTitle:
case MessageContentType::ChatChangePhoto:
@ -16341,8 +16342,9 @@ int32 MessagesManager::get_message_content_duration(const MessageContent *conten
auto voice_file_id = static_cast<const MessageVoiceNote *>(content)->file_id;
return td_->voice_notes_manager_->get_voice_note_duration(voice_file_id);
}
default:
return 0;
}
return 0;
}
FileId MessagesManager::get_message_content_file_id(const MessageContent *content) {
@ -23707,6 +23709,9 @@ MessagesManager::Message *MessagesManager::add_message_to_dialog(Dialog *d, uniq
td_->contacts_manager_->on_update_channel_pinned_message(
dialog_id.get_channel_id(), static_cast<const MessagePinMessage *>(message->content.get())->message_id);
break;
default:
// nothing to do
break;
}
if (new_participant_count != 0) {
td_->contacts_manager_->speculative_add_channel_participants(dialog_id.get_channel_id(), new_participant_count,