Commit e2d6419c by Jeong Gilmo

- チャットについて

#36215 403エラーが発生した場合は強制ログアウトしてログイン画面に遷移する
parent e7293e59
...@@ -1587,7 +1587,7 @@ socket.on('showServerError', function (message){ ...@@ -1587,7 +1587,7 @@ socket.on('showServerError', function (message){
// #36215 // #36215
if(message.includes("SC_FORBIDDEN")) if(message.includes("SC_FORBIDDEN"))
{ {
alert("SC_FORBIDDEN OCCURED"); alert('SC_FORBIDDEN');
return; return;
} }
......
...@@ -190,6 +190,8 @@ public class ChatWebviewActivity extends ParentWebViewActivity { ...@@ -190,6 +190,8 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
message = getString(R.string.msg_error_chat_room_name_too_long); message = getString(R.string.msg_error_chat_room_name_too_long);
} else if (message.equals("InvalidSpecialCharacterRoomName")) { } else if (message.equals("InvalidSpecialCharacterRoomName")) {
message = getString(R.string.msg_error_chat_name_has_invalid_character); message = getString(R.string.msg_error_chat_name_has_invalid_character);
} else if (message.equals("SC_FORBIDDEN")) {
message = getString(R.string.msg_error_chat_room_sc_forbidden);
} else { } else {
message = message; message = message;
} }
...@@ -208,7 +210,8 @@ public class ChatWebviewActivity extends ParentWebViewActivity { ...@@ -208,7 +210,8 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
@Override @Override
public void onDismiss(DialogInterface dialog) { public void onDismiss(DialogInterface dialog) {
// サーバと接続された場合、チャット画面を閉じる // サーバと接続された場合、チャット画面を閉じる
if (tempMessage.equals(getString(R.string.msg_error_chat_disconnected))) {
if (tempMessage.equals(getString(R.string.msg_error_chat_disconnected)) || tempMessage.equals(getString(R.string.msg_error_chat_room_sc_forbidden))) {
mChatWebView.loadUrl("javascript:leaveRoom()"); mChatWebView.loadUrl("javascript:leaveRoom()");
finish(); finish();
} else if (tempMessage.equals(getString(R.string.msg_error_chat_join))) { } else if (tempMessage.equals(getString(R.string.msg_error_chat_join))) {
......
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