-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/addons/mail/static/src/components/chat_window_manager_container/chat_window_manager_container.js b/addons/mail/static/src/components/chat_window_manager_container/chat_window_manager_container.js
new file mode 100644
index 00000000000..5eae2bd09ca
--- /dev/null
+++ b/addons/mail/static/src/components/chat_window_manager_container/chat_window_manager_container.js
@@ -0,0 +1,27 @@
+/** @odoo-module **/
+
+import { useModels } from '@mail/component_hooks/use_models';
+// ensure components are registered beforehand.
+import '@mail/components/chat_window_manager/chat_window_manager';
+import { getMessagingComponent } from "@mail/utils/messaging_component";
+
+const { Component, useSubEnv } = owl;
+
+export class ChatWindowManagerContainer extends Component {
+
+ /**
+ * @override
+ */
+ setup() {
+ // for now, the legacy env is needed for internal functions such as
+ // `useModels` to work
+ useSubEnv(Component.env);
+ useModels();
+ super.setup();
+ }
+}
+
+Object.assign(ChatWindowManagerContainer, {
+ components: { ChatWindowManager: getMessagingComponent('ChatWindowManager') },
+ template: 'mail.ChatWindowManagerContainer',
+});
diff --git a/addons/mail/static/src/components/chat_window_manager_container/chat_window_manager_container.xml b/addons/mail/static/src/components/chat_window_manager_container/chat_window_manager_container.xml
new file mode 100644
index 00000000000..a7ddd7d94d1
--- /dev/null
+++ b/addons/mail/static/src/components/chat_window_manager_container/chat_window_manager_container.xml
@@ -0,0 +1,6 @@
+
+