integrate InChatActivity.java