Files
discord-decomp/sources/components_native/channel_settings/ChannelSettingsUtils.tsx
T
2026-07-27 16:20:00 +03:00

12 lines
951 B
TypeScript

/* Metro module 15177; source: components_native/channel_settings/ChannelSettingsUtils.tsx; dependencies: [2] */
function _fun115952(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15374:6, offset: 0x02475ab4, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/channel_settings/ChannelSettingsUtils.tsx');
exports.getIsChannelNameSettingEditable = function({canManageThread, canManageChannels, canSendMessages,
isForumPost, isThread, isChannelOwner}) {
return isForumPost && isChannelOwner ? canSendMessages : isForumPost ? canManageThread : isThread ? canManageThread || isChannelOwner : canManageChannels;
};
}