2026-10-09 10:00:15 +00:00
|
|
|
// Module ID: 16576
|
|
|
|
|
// Function ID: 16577
|
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-10-09 10:00:15 +00:00
|
|
|
// Module 16576 (showChannelBadge)
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/guild_sidebar/showChannelBadge.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function showChannelBadge(isNewChannel) {
|
2026-10-03 08:58:59 +00:00
|
|
|
let mentionsCount;
|
|
|
|
|
let muted;
|
|
|
|
|
let postsWithUnreadsCount;
|
2026-07-20 16:05:17 +00:00
|
|
|
({ mentionsCount, postsWithUnreadsCount, muted } = isNewChannel);
|
2026-10-03 08:58:59 +00:00
|
|
|
let tmp = null != mentionsCount;
|
|
|
|
|
isNewChannel = isNewChannel.isNewChannel;
|
|
|
|
|
if (tmp) {
|
|
|
|
|
tmp = mentionsCount > 0;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
if (!tmp) {
|
|
|
|
|
tmp = isNewChannel;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
if (!tmp) {
|
|
|
|
|
tmp = null != muted && !muted && null != postsWithUnreadsCount && postsWithUnreadsCount > 0;
|
|
|
|
|
const tmp2 = null != muted && !muted && null != postsWithUnreadsCount && postsWithUnreadsCount > 0;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
return tmp;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|