禁止私聊时,只要发送者或接受者一方在允许私聊的列表里面,就允许私聊 fix #663

This commit is contained in:
imndx
2023-11-10 11:00:45 +08:00
parent b4fcef1ced
commit df67b8e0c8
@@ -2995,7 +2995,7 @@ public class MemoryMessagesStore implements IMessagesStore {
if (mDisableStrangerChat) {
//在禁止私聊时,是否是允许私聊的用户id
if(mAllowStrangerChatSet.contains(targetUser)) {
if(mAllowStrangerChatSet.contains(targetUser) || mAllowStrangerChatSet.contains(fromUser)) {
return ErrorCode.ERROR_CODE_SUCCESS;
}