decord/source/components_native/channel_settings/ChannelSettingsUtils.tsx

29 lines
833 B
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 16163
// Function ID: 16164
2026-07-20 16:05:17 +00:00
// Name: getIsChannelNameSettingEditable
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: getIsChannelNameSettingEditable
2026-08-25 06:04:03 +00:00
// Module 16163 (getIsChannelNameSettingEditable)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
const result = set.fileFinishedImporting("components_native/channel_settings/ChannelSettingsUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getIsChannelNameSettingEditable = function getIsChannelNameSettingEditable(arg0) {
({ canManageThread, canSendMessages, isForumPost, isChannelOwner } = arg0);
if (!isForumPost) {
canSendMessages = canManageThread;
if (!isForumPost) {
canSendMessages = tmp;
if (tmp2) {
let tmp3 = canManageThread;
if (!canManageThread) {
tmp3 = isChannelOwner;
}
canSendMessages = tmp3;
}
}
}
return canSendMessages;
};