Files
2026-07-28 01:06:53 +03:00

22 lines
1.8 KiB
TypeScript

/* Metro module 10257; source: modules/activities/utils/getActivityChannelId.tsx; dependencies: [1383, 1379, 4297, 2] */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import VoiceStateStore from '../../../stores/VoiceStateStore.tsx'; /* Metro dependency 4297 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ChannelRecordModule from '../../../records/ChannelRecord.tsx'; /* Metro dependency 1383 */
function _fun79656(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10443:6, offset: 0x01e5d183, size: 144 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/activities/utils/getActivityChannelId.tsx');
exports.default = getActivityChannelId;
function getActivityChannelId({channelId, userId, activity}) { // fn#79657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10443:233, offset: 0x01e5d213, size: 148 bytes, params: 2, frame: 18
const channel = ChannelStore.getChannel(channelId);
return (activity?.session_id == null ? channelId : channel == null ? VoiceStateStore.getVoiceStateForSession(userId,
activity?.session_id)?.channelId : isTextChannel(channel.type) ? channelId : VoiceStateStore.getVoiceStateForSession(userId,
activity?.session_id)?.channelId) ?? undefined;
}
}
global.__d(_fun79656, 10257, [1383, 1379, 4297, 2]) /* metro module 10257, dependencies: [1383, 1379, 4297, 2] */;