Topics: Fix muted status check (#3815)
This commit is contained in:
parent
c5c6207772
commit
a32251a2b3
@ -548,7 +548,7 @@ export function buildApiTopic(forumTopic: GramJs.TypeForumTopic): ApiTopic | und
|
|||||||
unreadMentionsCount,
|
unreadMentionsCount,
|
||||||
unreadReactionsCount,
|
unreadReactionsCount,
|
||||||
fromId: getApiChatIdFromMtpPeer(fromId),
|
fromId: getApiChatIdFromMtpPeer(fromId),
|
||||||
isMuted: silent || (typeof muteUntil === 'number' && getServerTime() < muteUntil),
|
isMuted: silent || (typeof muteUntil === 'number' ? getServerTime() < muteUntil : undefined),
|
||||||
muteUntil,
|
muteUntil,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user