Fix warning.

GitOrigin-RevId: 601d5141c123ee4928ea309b1846511fcf6d6b62
This commit is contained in:
levlam 2020-06-05 08:16:38 +03:00
parent 8e084a5b43
commit 88f6e483fe
2 changed files with 2 additions and 2 deletions

View File

@ -24259,7 +24259,7 @@ int32 MessagesManager::get_dialog_pending_notification_count(const Dialog *d, bo
return 1;
}
if (is_dialog_muted(d)) {
return d->pending_new_message_notifications.size(); // usually 0
return narrow_cast<int32>(d->pending_new_message_notifications.size()); // usually 0
}
return d->server_unread_count + d->local_unread_count;

View File

@ -1547,7 +1547,7 @@ Status SecretChatActor::outbound_rewrite_with_empty(uint64 state_id) {
MutableSlice data = state->message->encrypted_message.as_slice();
CHECK(is_aligned_pointer<4>(data.data()));
// Rewrite with delete itself.
// Rewrite with delete itself
tl_object_ptr<secret_api::DecryptedMessage> message = secret_api::make_object<secret_api::decryptedMessageService>(
state->message->random_id, secret_api::make_object<secret_api::decryptedMessageActionDeleteMessages>(
std::vector<int64>{static_cast<int64>(state->message->random_id)}));