decord/source/modules/guild_sidebar/showChannelBadge.tsx

30 lines
777 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15553
// Function ID: 15554
2026-07-20 16:05:17 +00:00
// Name: showChannelBadge
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 15553 (showChannelBadge)
import set from "set" /* 2 */;
const result = set.fileFinishedImporting("modules/guild_sidebar/showChannelBadge.tsx");
2026-07-20 16:05:17 +00:00
export default function showChannelBadge(isNewChannel) {
({ mentionsCount, postsWithUnreadsCount, muted } = isNewChannel);
isNewChannel = null != mentionsCount;
if (isNewChannel) {
isNewChannel = mentionsCount > 0;
}
if (!isNewChannel) {
isNewChannel = isNewChannel.isNewChannel;
}
if (!isNewChannel) {
let tmp = null != muted && !muted && null != postsWithUnreadsCount;
if (tmp) {
tmp = postsWithUnreadsCount > 0;
}
isNewChannel = tmp;
}
return isNewChannel;
};