decord/stable/source/modules/guild_sidebar/showChannelBadge.tsx
github-actions e2bc0408ee chore: update source for stable 346.13
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-22 22:11:40 +00:00

29 lines
784 B
TypeScript

// Module ID: 16325
// Function ID: 16326
// Name: showChannelBadge
// Dependencies: [2]
// Exports: default
// Module 16325 (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;
};