Commit 97e8af4a by Kim Peace

Fixed to invited to collaobariton user's room type to dm

parent f838f7ca
......@@ -95,6 +95,8 @@ FermiWebSocketMessageHandler.handleMessagesToAll = function (data) {
if (globalUserInfo.joinType != COLLABORATION_JOIN_TYPE.INVITED) {
FermiWebSocketMessageHandler.apiWelcome();
} else {
// when collaboration type is invited it should be dm room also
roomInfo.roomType = ChatRoomType.DM;
FermiWebSocketBridge.getCollaborationType();
}
CollaborationFeature.updateHost();
......
......@@ -175,6 +175,9 @@ CollaborationFeature.didReceiveLoginResponseMessage = async function () {
NativeBridgeDelegate.showPhotoSelection();
}, 100);
}
if (globalUserInfo.joinType == COLLABORATION_JOIN_TYPE.INVITED) {
roomInfo.roomType = ChatRoomType.DM;
}
} catch (err) {
// if the user denied the permission, it goes back to chat room
if (err.name == "NotAllowedError") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment