decord/source/modules/guild_sidebar/showChannelBadge.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

29 lines
777 B
TypeScript

// Module ID: 16231
// Function ID: 16232
// Name: showChannelBadge
// Dependencies: [2]
// Exports: default
// Module 16231 (showChannelBadge)
import set from "set" /* 2 */;
const result = set.fileFinishedImporting("modules/guild_sidebar/showChannelBadge.tsx");
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;
};