Commit 0ab4d255 by Kim Peace

Hotfix for collaboration type number converting

parent 3a8d2859
...@@ -132,14 +132,24 @@ CHAT_UTIL.getCollaborationType = function (collaborationNumber) { ...@@ -132,14 +132,24 @@ CHAT_UTIL.getCollaborationType = function (collaborationNumber) {
CHAT_UTIL.getCollaborationTypeNumber = function (collaborationType) { CHAT_UTIL.getCollaborationTypeNumber = function (collaborationType) {
switch (collaborationType) { switch (collaborationType) {
case 0:
case "0":
case COLLABORATION_TYPE.AUDIO: case COLLABORATION_TYPE.AUDIO:
return COLLABORATION_TYPE_NUMBER.AUDIO; return COLLABORATION_TYPE_NUMBER.AUDIO;
case 2:
case "2":
case COLLABORATION_TYPE.CAMERA: case COLLABORATION_TYPE.CAMERA:
return COLLABORATION_TYPE_NUMBER.CAMERA; return COLLABORATION_TYPE_NUMBER.CAMERA;
case 3:
case "3":
case COLLABORATION_TYPE.VIDEO: case COLLABORATION_TYPE.VIDEO:
return COLLABORATION_TYPE_NUMBER.VIDEO; return COLLABORATION_TYPE_NUMBER.VIDEO;
case 4:
case "4":
case COLLABORATION_TYPE.DOCUMENT: case COLLABORATION_TYPE.DOCUMENT:
return COLLABORATION_TYPE_NUMBER.DOCUMENT; return COLLABORATION_TYPE_NUMBER.DOCUMENT;
case 5:
case "5":
case COLLABORATION_TYPE.BOARD: case COLLABORATION_TYPE.BOARD:
return COLLABORATION_TYPE_NUMBER.BOARD; return COLLABORATION_TYPE_NUMBER.BOARD;
default: default:
......
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