2026-10-09 10:00:15 +00:00
|
|
|
// Module ID: 8360
|
|
|
|
|
// Function ID: 8361
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: VideoBackgroundManager
|
2026-10-09 10:00:15 +00:00
|
|
|
// Dependencies: [2115, 6804, 2]
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-10-09 10:00:15 +00:00
|
|
|
// Module 8360 (VideoBackgroundManager)
|
2026-10-08 09:57:35 +00:00
|
|
|
import SelectedChannelStore from "SelectedChannelStore" /* 2115 */;
|
2026-10-09 10:00:15 +00:00
|
|
|
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 6804 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-03 08:58:59 +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-07-20 16:05:17 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
const videoBackgroundManager = new VideoBackgroundManager();
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/calls/native/VideoBackgroundManager.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-03 08:58:59 +00:00
|
|
|
export default videoBackgroundManager;
|