decord/source/modules/guild_sidebar/showChannelBadge.tsx

31 lines
819 B
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 15343
// Function ID: 15344
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-08 06:10:11 +00:00
// Module 15343 (showChannelBadge)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/guild_sidebar/showChannelBadge.tsx");
2026-07-20 16:05:17 +00:00
export default function showChannelBadge(isNewChannel) {
let mentionsCount;
let muted;
let postsWithUnreadsCount;
({ 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;
};