diff --git a/Telegram/SourceFiles/api/api_sending.cpp b/Telegram/SourceFiles/api/api_sending.cpp index 77a4c6eae..1858eae33 100644 --- a/Telegram/SourceFiles/api/api_sending.cpp +++ b/Telegram/SourceFiles/api/api_sending.cpp @@ -397,6 +397,11 @@ void SendConfirmedFile( } else { flags |= MessageFlag::LocalHistoryEntry; } + if (file->type == SendMediaType::Audio) { + if (!peer->isChannel() || peer->isMegagroup()) { + flags |= MessageFlag::MediaIsUnread; + } + } const auto messageFromId = anonymousPost ? 0 : session->userPeerId(); const auto messagePostAuthor = peer->isBroadcast()