diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index c21710404..e9ab857da 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -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(d->pending_new_message_notifications.size()); // usually 0 } return d->server_unread_count + d->local_unread_count; diff --git a/td/telegram/SecretChatActor.cpp b/td/telegram/SecretChatActor.cpp index 1017d26bf..863261d0c 100644 --- a/td/telegram/SecretChatActor.cpp +++ b/td/telegram/SecretChatActor.cpp @@ -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 message = secret_api::make_object( state->message->random_id, secret_api::make_object( std::vector{static_cast(state->message->random_id)}));