解决聊天室定向消息问题
This commit is contained in:
@@ -733,7 +733,7 @@ public class MemoryMessagesStore implements IMessagesStore {
|
|||||||
}
|
}
|
||||||
pullType = ProtoConstants.PullType.Pull_Normal;
|
pullType = ProtoConstants.PullType.Pull_Normal;
|
||||||
} else if (type == ProtoConstants.ConversationType.ConversationType_ChatRoom) {
|
} else if (type == ProtoConstants.ConversationType.ConversationType_ChatRoom) {
|
||||||
boolean isDirect = !StringUtil.isNullOrEmpty(message.getToUser());
|
boolean isDirect = !StringUtil.isNullOrEmpty(message.getToUser()) || !message.getToList().isEmpty();
|
||||||
Collection<UserClientEntry> entries = getChatroomMembers(message.getConversation().getTarget());
|
Collection<UserClientEntry> entries = getChatroomMembers(message.getConversation().getTarget());
|
||||||
for (UserClientEntry entry : entries) {
|
for (UserClientEntry entry : entries) {
|
||||||
if (isDirect) {
|
if (isDirect) {
|
||||||
@@ -741,6 +741,9 @@ public class MemoryMessagesStore implements IMessagesStore {
|
|||||||
notifyReceivers.add(message.getToUser());
|
notifyReceivers.add(message.getToUser());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (message.getToList().contains(entry.userId)) {
|
||||||
|
notifyReceivers.add(entry.userId);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
notifyReceivers.add(entry.userId);
|
notifyReceivers.add(entry.userId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user