2026-10-06 22:12:49 +00:00
|
|
|
// Module ID: 7700
|
|
|
|
|
// Function ID: 7701
|
2026-09-18 20:18:48 +00:00
|
|
|
// Name: VideoBackgroundManager
|
2026-10-06 22:12:49 +00:00
|
|
|
// Dependencies: [2102, 6540, 2]
|
2026-09-18 20:18:48 +00:00
|
|
|
|
2026-10-06 22:12:49 +00:00
|
|
|
// Module 7700 (VideoBackgroundManager)
|
|
|
|
|
import SelectedChannelStore from "SelectedChannelStore" /* 2102 */;
|
|
|
|
|
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 6540 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 20:18:48 +00:00
|
|
|
|
2026-10-06 22:12:49 +00:00
|
|
|
class VideoBackgroundManager extends AutomaticLifecycleManager {
|
|
|
|
|
constructor() {
|
|
|
|
|
const applyArgumentsResult = HermesBuiltin.applyArguments(this, new.target);
|
|
|
|
|
applyArgumentsResult.previousSelectedVoiceChannelId = SelectedChannelStore.getVoiceChannelId();
|
|
|
|
|
applyArgumentsResult.cachedDominantColors = {};
|
|
|
|
|
applyArgumentsResult._handleSelectVoiceChannel = function _handleSelectVoiceChannel(channelId) {
|
|
|
|
|
channelId = channelId.channelId;
|
|
|
|
|
if (applyArgumentsResult.previousSelectedVoiceChannelId !== channelId) {
|
|
|
|
|
applyArgumentsResult.cachedDominantColors = {};
|
|
|
|
|
}
|
|
|
|
|
applyArgumentsResult.previousSelectedVoiceChannelId = channelId;
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult.actions = { VOICE_CHANNEL_SELECT: applyArgumentsResult._handleSelectVoiceChannel };
|
|
|
|
|
return applyArgumentsResult;
|
|
|
|
|
}
|
2026-09-18 20:18:48 +00:00
|
|
|
}
|
2026-10-06 22:12:49 +00:00
|
|
|
const videoBackgroundManager = new VideoBackgroundManager();
|
2026-09-18 20:18:48 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/calls/native/VideoBackgroundManager.tsx");
|
|
|
|
|
|
2026-10-06 22:12:49 +00:00
|
|
|
export default videoBackgroundManager;
|