Commit 36c20533 by Kim Jinsung

プッシュメッセージ受信情報からroomType取得しないように修正

サーバ側でroomType=null送られてエラー発生
parent 79b7ca5b
...@@ -231,7 +231,7 @@ public class ABVFcmListenerService extends FirebaseMessagingService { ...@@ -231,7 +231,7 @@ public class ABVFcmListenerService extends FirebaseMessagingService {
textMessage.contains(ABookCommConstants.COLLABORATION.INVITE_COLLABORATION.JP) || textMessage.contains(ABookCommConstants.COLLABORATION.INVITE_COLLABORATION.JP) ||
textMessage.contains(ABookCommConstants.COLLABORATION.INVITE_COLLABORATION.KR) textMessage.contains(ABookCommConstants.COLLABORATION.INVITE_COLLABORATION.KR)
) { ) {
roomType = Integer.toString(json.getInt(AppDefType.ChatPushMessageKey.roomType)); // roomType = Integer.toString(json.getInt(AppDefType.ChatPushMessageKey.roomType));
collaborationType = collaborationTypeToNum(textMessage); collaborationType = collaborationTypeToNum(textMessage);
} }
String roomName = json.getString(AppDefType.ChatPushMessageKey.roomName); String roomName = json.getString(AppDefType.ChatPushMessageKey.roomName);
......
...@@ -62,8 +62,9 @@ public class PushMessageJSON { ...@@ -62,8 +62,9 @@ public class PushMessageJSON {
public String getRoomType() { public String getRoomType() {
try { try {
int roomType = jsonObject.getInt(AppDefType.ChatPushMessageKey.roomType); // int roomType = jsonObject.getInt(AppDefType.ChatPushMessageKey.roomType);
return Integer.toString(roomType); // return Integer.toString(roomType);
return "";
} catch (Exception e){ } catch (Exception e){
return ""; return "";
} }
......
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