Skip to content

Commit

Permalink
加入聊天室判断聊天室是否销毁
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyrain2012 committed Dec 22, 2021
1 parent f96f202 commit 24e95ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3202,7 +3202,7 @@ public ErrorCode setFriendExtraRequest(String fromUser, String targetUserId, Str
@Override
public ErrorCode handleJoinChatroom(String userId, String clientId, String chatroomId) {
IMap<String, WFCMessage.ChatroomInfo> chatroomInfoMap = m_Server.getHazelcastInstance().getMap(CHATROOMS);
if (chatroomInfoMap == null || chatroomInfoMap.get(chatroomId) == null) {
if (chatroomInfoMap == null || chatroomInfoMap.get(chatroomId) == null || chatroomInfoMap.get(chatroomId).getState() == ProtoConstants.ChatroomState.Chatroom_State_End) {
if(mChatroomCreateWhenNotExist) {
WFCMessage.ChatroomInfo.Builder builder = WFCMessage.ChatroomInfo.newBuilder().setTitle(chatroomId);
createChatroom(chatroomId, builder.build());
Expand Down

0 comments on commit 24e95ea

Please sign in to comment.