Commit 7e3f78f1c6aa84c57ea64f83ab849d1b59c2cb18
1 parent
59ca457b
聊天修改私聊
Showing
1 changed file
with
0 additions
and
41 deletions
app/src/main/java/com/cnlive/im/ui/PrivateChatActivity.java
| ... | ... | @@ -51,7 +51,6 @@ public class PrivateChatActivity extends AppCompatActivity implements View.OnCli |
| 51 | 51 | setContentView(R.layout.activity_private_chat); |
| 52 | 52 | initView(); |
| 53 | 53 | ChatUtil.setConnectStatusListener(connectStatusListener); |
| 54 | - ChatUtil.setOnChatRoomActionListener(chatRoomActionListener); | |
| 55 | 54 | ChatUtil.setOnReceiveMessageListener(receiveMessageListener); |
| 56 | 55 | ChatUtil.connect(connectListener); |
| 57 | 56 | |
| ... | ... | @@ -188,46 +187,6 @@ Toast.makeText(PrivateChatActivity.this,"onAttached",Toast.LENGTH_LONG).show(); |
| 188 | 187 | }; |
| 189 | 188 | |
| 190 | 189 | |
| 191 | - //聊天室操作 | |
| 192 | - private IChat.OnChatRoomActionListener chatRoomActionListener = new IChat.OnChatRoomActionListener() { | |
| 193 | - @Override | |
| 194 | - public void onJoining(String s) { | |
| 195 | - Log.i(TAG, "私聊chatRoomActionListener" + " onJoined" + s); | |
| 196 | - | |
| 197 | - } | |
| 198 | - | |
| 199 | - @Override | |
| 200 | - public void onJoined(String s) { | |
| 201 | - Log.i(TAG, "私聊chatRoomActionListener " + "onJoined" + s); | |
| 202 | - | |
| 203 | - } | |
| 204 | - | |
| 205 | - @Override | |
| 206 | - public void onQuited(String s) { | |
| 207 | - Log.i(TAG, "私聊chatRoomActionListener " + "onQuited" + s); | |
| 208 | - | |
| 209 | - } | |
| 210 | - | |
| 211 | - @Override | |
| 212 | - public void onError(String s, int i, String s1) { | |
| 213 | - Log.i(TAG, "私聊chatRoomActionListener " + "onError" + s); | |
| 214 | - | |
| 215 | - } | |
| 216 | - }; | |
| 217 | - | |
| 218 | - | |
| 219 | - //获取历史消息监听 | |
| 220 | -// private IChat.OnLatestMessageListener latestMessageListener = new IChat.OnLatestMessageListener() { | |
| 221 | -// @Override | |
| 222 | -// public void onSuccess(List<CNMessage> list) { | |
| 223 | -// | |
| 224 | -// } | |
| 225 | -// | |
| 226 | -// @Override | |
| 227 | -// public void onError(int i, String s) { | |
| 228 | -// | |
| 229 | -// } | |
| 230 | -// }; | |
| 231 | 190 | |
| 232 | 191 | |
| 233 | 192 | @Override | ... | ... |