Skip to content
Snippets Groups Projects
Unverified Commit ef946225 authored by graywolf336's avatar graywolf336
Browse files

Fix possible errors on rocket.chat side of the apps

parent 89bb702c
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ export class AppRoomsConverter {
case 'lc':
return RoomType.LIVE_CHAT;
default:
throw new Error(`Unknown room type of: "${ typeChar }"`);
return typeChar;
}
}
}
......@@ -50,7 +50,7 @@ export class AppUsersConverter {
case 'bot':
return UserType.BOT;
default:
throw new Error('Unknown user type of:', type);
return type.toUpperCase();
}
}
......@@ -65,7 +65,7 @@ export class AppUsersConverter {
case 'busy':
return UserStatusConnection.BUSY;
default:
throw new Error('Unknown status type of:', status);
return status === '' ? UserStatusConnection.OFFLINE : status.toUpperCase();
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment