decord/alpha/source/modules/guild_sidebar/showChannelBadge.tsx

30 lines
784 B
TypeScript
Raw Normal View History

// Module ID: 16578
// Function ID: 16579
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
// Module 16578 (showChannelBadge)
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.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;
};