size += 1 * getMList().size();
Operation op = session.conversationOperationCache.poll(requestKey); if (null != op && op.operation == AVIMOperation.CONVERSATION_MUTED_MEMBER_QUERY.getCode()) { List<String> result = convCommand.getMList(); // result stored in m field. String[] resultMembers = new String[null == result? 0 : result.size()]; if (null != result) {
void onMemberShutupedNotify(final boolean isMuted, final String operator, Messages.ConvCommand convCommand) { final AVIMConversationEventHandler handler = AVIMMessageManagerHelper.getConversationEventHandler(); List<String> members = convCommand.getMList(); if (handler != null && null != members) { final List<String> copyMembers = new ArrayList<>(members); copyMembers.remove(session.getSelfPeerId()); if (copyMembers.size() < 1) { // ignore self member_shutuped notify, bcz server sends both shutuped and member_shutuped notification. LogUtil.log.d("Notification --- ignore shutuped/unshutuped notify bcz duplicated."); } else { AVIMClient client = AVIMClient.getInstance(session.getSelfPeerId()); final AVIMConversation conversation = parseConversation(client, convCommand); refreshConversationThenNotify(conversation, new SimpleCallback() { @Override public void done() { if (isMuted) { handler.processEvent(Conversation.STATUS_ON_MEMBER_MUTED, operator, copyMembers, conversation); } else { handler.processEvent(Conversation.STATUS_ON_MEMBER_UNMUTED, operator, copyMembers, conversation); } } }); } } }
if (getMCount() > 0) { hash = (37 * hash) + M_FIELD_NUMBER; hash = (53 * hash) + getMList().hashCode();
List<String> joinedMembers = convCommand.getMList(); onMembersJoined(joinedMembers, invitedBy); } else if (ConversationControlOp.MEMBER_LEFTED.equals(operation)) { String removedBy = convCommand.getInitBy(); List<String> leftMembers = convCommand.getMList(); onMembersLeft(leftMembers, removedBy); } else if (ConversationControlOp.MEMBER_INFO_CHANGED.equals(operation)) {
void onMemberBlockedNotify(final boolean isBlocked, final String operator, Messages.ConvCommand convCommand) { final AVIMConversationEventHandler handler = AVIMMessageManagerHelper.getConversationEventHandler(); final List<String> members = convCommand.getMList(); if (handler != null && null != members) { AVIMClient client = AVIMClient.getInstance(session.getSelfPeerId()); final AVIMConversation conversation = parseConversation(client, convCommand); refreshConversationThenNotify(conversation, new SimpleCallback() { @Override public void done() { if (isBlocked) { handler.processEvent(Conversation.STATUS_ON_MEMBER_BLOCKED, operator, members, conversation); } else { handler.processEvent(Conversation.STATUS_ON_MEMBER_UNBLOCKED, operator, members, conversation); } } }); } }