diff --git a/app/lib/methods/helpers/goRoom.ts b/app/lib/methods/helpers/goRoom.ts index 006360ff7..a2550db41 100644 --- a/app/lib/methods/helpers/goRoom.ts +++ b/app/lib/methods/helpers/goRoom.ts @@ -4,6 +4,7 @@ import Navigation from '../../navigation/appNavigation'; import { IOmnichannelRoom, SubscriptionType, IVisitor, TSubscriptionModel, ISubscription } from '../../../definitions'; import { getRoomTitle, getUidDirectMessage } from './helpers'; import { Services } from '../../services'; +import { emitErrorCreateDirectMessage } from './emitErrorCreateDirectMessage'; interface IGoRoomItem { search?: boolean; // comes from spotlight @@ -111,8 +112,8 @@ export const goRoom = async ({ ...props }); } - } catch { - // Do nothing + } catch (e: any) { + emitErrorCreateDirectMessage(e?.data); } }