@@ -2,6 +2,7 @@ import { Component } from 'preact';
22import { route } from 'preact-router' ;
33import { withTranslation } from 'react-i18next' ;
44
5+ import Chat from './component' ;
56import { Livechat } from '../../api' ;
67import { ModalManager } from '../../components/Modal' ;
78import { getAvatarUrl } from '../../helpers/baseUrl' ;
@@ -22,9 +23,8 @@ import constants from '../../lib/constants';
2223import { getLastReadMessage , loadConfig , processUnread , shouldMarkAsUnread } from '../../lib/main' ;
2324import { parentCall , runCallbackEventEmitter } from '../../lib/parentCall' ;
2425import { createToken } from '../../lib/random' ;
25- import { initRoom , closeChat , loadMessages , loadMoreMessages , defaultRoomParams , getGreetingMessages } from '../../lib/room' ;
26+ import { initRoom , loadMessages , loadMoreMessages , defaultRoomParams , getGreetingMessages } from '../../lib/room' ;
2627import store from '../../store' ;
27- import Chat from './component' ;
2828
2929const ChatWrapper = ( { children, rid } ) => {
3030 useRoomMessagesSubscription ( rid ) ;
@@ -254,7 +254,6 @@ class ChatContainer extends Component {
254254 await dispatch ( { alerts : ( alerts . push ( alert ) , alerts ) } ) ;
255255 } finally {
256256 await dispatch ( { loading : false } ) ;
257- await closeChat ( ) ;
258257 }
259258 } ;
260259
0 commit comments