Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
29 lines
784 B
TypeScript
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;
|
|
};
|