decord/source/modules/guild_sidebar/showChannelBadge.tsx

32 lines
855 B
TypeScript
Raw Normal View History

2026-07-21 22:01:30 +00:00
// Module ID: 14927
// Function ID: 112397
2026-07-20 16:05:17 +00:00
// Name: showChannelBadge
2026-07-21 22:01:30 +00:00
// Dependencies: []
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-21 22:01:30 +00:00
// Module 14927 (showChannelBadge)
2026-07-20 16:05:17 +00:00
const _module = require(dependencyMap[0]);
const result = _module.fileFinishedImporting("modules/guild_sidebar/showChannelBadge.tsx");
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;
};