decord/source/modules/guild_sidebar/showChannelBadge.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

29 lines
784 B
TypeScript

// Module ID: 16323
// Function ID: 16324
// Name: showChannelBadge
// Dependencies: [2]
// Exports: default
// Module 16323 (showChannelBadge)
import size from "module_2" /* 2 */;
const result = size.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;
};