server api获取被封禁用户时,过滤掉正常用户

This commit is contained in:
heavyrian2012
2024-07-09 16:06:10 +08:00
parent 100a1bd44c
commit 6ef8b78452
@@ -2858,7 +2858,9 @@ public class MemoryMessagesStore implements IMessagesStore {
IMap<String, Integer> mUserMap = hzInstance.getMap(USER_STATUS);
ArrayList<InputOutputUserBlockStatus> out = new ArrayList<>();
for (Map.Entry<String, Integer> entry : mUserMap.entrySet()) {
out.add(new InputOutputUserBlockStatus(entry.getKey(), entry.getValue()));
if(entry.getValue() > 0) {
out.add(new InputOutputUserBlockStatus(entry.getKey(), entry.getValue()));
}
}
return out;
}