mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Fix outgoing voice message unread mark.
This commit is contained in:
parent
e492bbb883
commit
52721847f4
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue