Commit 45fbb74d by Kang Donghun

#42612 ルーム非表示後、同じルームを作成し入室して退室すると、一覧に表示されない

parent 60772113
...@@ -127,6 +127,11 @@ public interface ABookCommConstants { ...@@ -127,6 +127,11 @@ public interface ABookCommConstants {
Integer JOIN = 1; Integer JOIN = 1;
} }
interface ROOM_VIEW_FLAG {
Integer VISIBLE = 0;
Integer INVISIBLE = 1;
}
Integer GROUP_REQUEST_ALL = 0; Integer GROUP_REQUEST_ALL = 0;
} }
......
...@@ -164,8 +164,9 @@ public class ChatRoomDao extends AbstractDao { ...@@ -164,8 +164,9 @@ public class ChatRoomDao extends AbstractDao {
update("update t_chat_room set chat_room_name = ? where chat_room_id = ?", new Object[]{roomName, roomId}); update("update t_chat_room set chat_room_name = ? where chat_room_id = ?", new Object[]{roomName, roomId});
} }
public void changeRoomViewFlg(Integer roomId) { public void changeRoomViewFlg(Integer roomId, Integer viewFlg) {
update("update t_chat_room set view_flg = 1 where chat_room_id = ?", new String[]{"" + roomId}); Logger.d("kdh check " + viewFlg);
update("update t_chat_room set view_flg = ? where chat_room_id = ?", new Object[]{viewFlg, roomId});
} }
public void insertChatRoom(List<ChatRoomDto> chatRoomDtoList) { public void insertChatRoom(List<ChatRoomDto> chatRoomDtoList) {
......
...@@ -875,8 +875,8 @@ public class CommunicationLogic extends AbstractLogic { ...@@ -875,8 +875,8 @@ public class CommunicationLogic extends AbstractLogic {
archiveDao.deleteArchiveAllData(); archiveDao.deleteArchiveAllData();
} }
public void roomDisplayOff(Integer roomId) { public void roomDisplayOff(Integer roomId, Integer viewFlg) {
chatRoomDao.changeRoomViewFlg(roomId); chatRoomDao.changeRoomViewFlg(roomId, viewFlg);
} }
public String getUserList(String userIdList) { public String getUserList(String userIdList) {
......
...@@ -933,6 +933,8 @@ public class ChatWebviewActivity extends ParentWebViewActivity { ...@@ -933,6 +933,8 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
roomName = chatRoom.chatRoomName; roomName = chatRoom.chatRoomName;
roomType = chatRoom.type.toString(); roomType = chatRoom.type.toString();
beforeRoomType = chatRoom.type.toString(); beforeRoomType = chatRoom.type.toString();
communicationLogic.roomDisplayOff(roomId.intValue(), ABookCommConstants.FLAG.ROOM_VIEW_FLAG.VISIBLE);
mChatWebView.post(new Runnable() { mChatWebView.post(new Runnable() {
@Override @Override
public void run() { public void run() {
...@@ -944,7 +946,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity { ...@@ -944,7 +946,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
@JavascriptInterface @JavascriptInterface
public void roomDisplayOff() { public void roomDisplayOff() {
communicationLogic.roomDisplayOff(roomId.intValue()); communicationLogic.roomDisplayOff(roomId.intValue(), ABookCommConstants.FLAG.ROOM_VIEW_FLAG.INVISIBLE);
mChatWebView.post(new Runnable() { mChatWebView.post(new Runnable() {
@Override @Override
public void run() { public void run() {
......
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