diff --git a/app/ui-cached-collection/client/models/CachedCollection.js b/app/ui-cached-collection/client/models/CachedCollection.js index 107024926b70e..1ef9d99624c75 100644 --- a/app/ui-cached-collection/client/models/CachedCollection.js +++ b/app/ui-cached-collection/client/models/CachedCollection.js @@ -282,7 +282,8 @@ export class CachedCollection extends Emitter { }); } if (room) { - RoomManager.close(room.t + room.name); + room.name && RoomManager.close(room.t + room.name); + !room.name && RoomManager.close(room.t + room._id); } this.collection.remove(record._id); } else { diff --git a/client/views/room/Header/Omnichannel/QuickActions/QuickActions.tsx b/client/views/room/Header/Omnichannel/QuickActions/QuickActions.tsx index 6b5a373fd20ea..810c1b78858ef 100644 --- a/client/views/room/Header/Omnichannel/QuickActions/QuickActions.tsx +++ b/client/views/room/Header/Omnichannel/QuickActions/QuickActions.tsx @@ -13,6 +13,7 @@ import React, { } from 'react'; import toastr from 'toastr'; +import { RoomManager } from '../../../../../../app/ui-utils/client'; import { handleError } from '../../../../../../app/utils/client'; import { IRoom } from '../../../../../../definition/IRoom'; import PlaceChatOnHoldModal from '../../../../../../ee/app/livechat-enterprise/client/components/modals/PlaceChatOnHoldModal'; @@ -92,8 +93,7 @@ const QuickActions: FC = ({ room, className }) => { try { await requestTranscript(rid, email, subject); closeModal(); - Session.set('openedRoom', null); - FlowRouter.go('/home'); + RoomManager.close(`l${rid}`); toastr.success(t('Livechat_transcript_has_been_requested')); } catch (error) { handleError(error);