chore: add error handling to goRoom helper function
This commit is contained in:
parent
c2ba383234
commit
f3389100ae
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue