Topics: Fix muted status check (#3815)

This commit is contained in:
Alexander Zinchuk 2023-09-08 18:39:15 +02:00
parent c5c6207772
commit a32251a2b3

View File

@ -548,7 +548,7 @@ export function buildApiTopic(forumTopic: GramJs.TypeForumTopic): ApiTopic | und
unreadMentionsCount,
unreadReactionsCount,
fromId: getApiChatIdFromMtpPeer(fromId),
isMuted: silent || (typeof muteUntil === 'number' && getServerTime() < muteUntil),
isMuted: silent || (typeof muteUntil === 'number' ? getServerTime() < muteUntil : undefined),
muteUntil,
};
}