server api获取被封禁用户时,过滤掉正常用户
This commit is contained in:
@@ -2858,7 +2858,9 @@ public class MemoryMessagesStore implements IMessagesStore {
|
|||||||
IMap<String, Integer> mUserMap = hzInstance.getMap(USER_STATUS);
|
IMap<String, Integer> mUserMap = hzInstance.getMap(USER_STATUS);
|
||||||
ArrayList<InputOutputUserBlockStatus> out = new ArrayList<>();
|
ArrayList<InputOutputUserBlockStatus> out = new ArrayList<>();
|
||||||
for (Map.Entry<String, Integer> entry : mUserMap.entrySet()) {
|
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;
|
return out;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user