26 lines
793 B
TypeScript
26 lines
793 B
TypeScript
// Metro module 1865 (f1866).
|
|
import { FAVORITES_RAW_GUILD_ID } from "./FavoritesConstants";
|
|
import { FAVORITES } from "../../Constants";
|
|
import { intl, t } from "../../intl/index.native";
|
|
export function getFavoritesAwareGuildName(a0) {
|
|
if (a0 != null) {
|
|
const id = a0.id;
|
|
return id === FAVORITES_RAW_GUILD_ID || id === FAVORITES ? intl.string(t.wMWyci) : a0.name;
|
|
}
|
|
}
|
|
export function isFavoritesGuildId(a0) {
|
|
return a0 === FAVORITES_RAW_GUILD_ID || a0 === FAVORITES;
|
|
}
|
|
export function isFavoritesGuildCategoryNameValid(a0) {
|
|
return a0.trim() !== "";
|
|
}
|
|
export function canFavoriteChannelType(a0, a1) {
|
|
const isCategory = a0.isCategory();
|
|
let r3 = !isCategory;
|
|
if (!isCategory) {
|
|
const isThread = a0.isThread();
|
|
r3 = isThread ? a1 : !isThread;
|
|
}
|
|
return r3;
|
|
}
|