Commit 4de00816 by Lee Munkyeong

#482対応。

parent 6ac18d62
......@@ -106,6 +106,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
private boolean isOnline;
private Long roomId;
private String roomType;
private String beforeRoomType;
private Integer shopMemberId;
private String selectedUserIdList;
......@@ -787,6 +788,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
roomId = Long.parseLong(joinRoomId);
roomName = joinRoomName;
roomType = chatRoom.type.toString();
beforeRoomType = chatRoom.type.toString();
mChatWebView.post(new Runnable() {
@Override
public void run() {
......@@ -826,6 +828,16 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
}
@JavascriptInterface
public String getBeforeRoomType() {
return beforeRoomType;
}
@JavascriptInterface
public void clearBeforeRoomType() {
beforeRoomType = null;
}
@JavascriptInterface
public void updateMessages(String roomId) throws NetworkDisconnectedException, AcmsException {
MessageInfoListJSON resultJson = AcmsClient.getInstance(ABVEnvironment.getInstance().networkAdapter).getMessages(sid, roomId);
for (ChatMessageDto chatMessageDto : resultJson.chatMessageDtoArrayList) {
......
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