Commit c1655865 by Takatoshi Miura

AABCOMM-93_change-collaboration_[iOS] 協業切り替え実装中

parent 0d218888
...@@ -214,6 +214,7 @@ ...@@ -214,6 +214,7 @@
IS_MOBILE = isMobile; IS_MOBILE = isMobile;
IS_ONLINE = isOnline; IS_ONLINE = isOnline;
if (CHAT_UTIL.isIOS()) { if (CHAT_UTIL.isIOS()) {
joinCollaborationType = CHAT_DB.getJoinCollaborationType();
collaborationJoinFlg = CHAT_DB.getCollaborationJoinFlg(); collaborationJoinFlg = CHAT_DB.getCollaborationJoinFlg();
} else if (CHAT_UTIL.isAndroid()) { } else if (CHAT_UTIL.isAndroid()) {
joinCollaborationType = android.getJoinCollaborationType(); joinCollaborationType = android.getJoinCollaborationType();
......
...@@ -358,3 +358,10 @@ CHAT_DB.getToMoveGroupId = function() { ...@@ -358,3 +358,10 @@ CHAT_DB.getToMoveGroupId = function() {
return callNativeApp("getToMoveGroupId", {}); return callNativeApp("getToMoveGroupId", {});
} }
}; };
CHAT_DB.getJoinCollaborationType = function() {
// Androidは実装不要
if (CHAT_UTIL.isIOS()) {
return callNativeApp("getJoinCollaborationType", {});
}
};
...@@ -336,7 +336,7 @@ function changeCollaboration(changeCollaborationType) { ...@@ -336,7 +336,7 @@ function changeCollaboration(changeCollaborationType) {
} }
} }
if (CHAT_UTIL.isIOS()) { if (CHAT_UTIL.isIOS()) {
//TODO Nativeに変換するCollaborationTypeを保存。 webkit.messageHandlers.setJoinCollaborationType.postMessage(changeCollaborationType);
} else if (CHAT_UTIL.isAndroid()) { } else if (CHAT_UTIL.isAndroid()) {
android.setJoinCollaborationType(changeCollaborationType); android.setJoinCollaborationType(changeCollaborationType);
} }
......
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