Skip to content

Commit 16dd940

Browse files
akhanfirJihed525
authored andcommitted
fix: Documents added in chat group not available for all members - EXO-78701. (#799)
Before this change, when Create chat group having more than 20 users then share a document in this chat and check uploaded documents permissions, only 18 users are listed in collaborators who can view the document. To fix this problem, change limit 20 to 0 when the limit is not specified to return all the room user list. After this change, all group members can open the uploaded document. (cherry picked from commit 6976245)
1 parent ebc4d7d commit 16dd940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server-embedded/src/main/java/org/exoplatform/chat/server/ChatServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ protected void users(HttpServletRequest request, HttpServletResponse response) {
11871187
}
11881188

11891189
boolean showOnlyOnlineUsers = StringUtils.isNotBlank(onlineOnly) && "true".equals(onlineOnly);
1190-
int limit = StringUtils.isNumeric(limitString) ? Integer.parseInt(limitString) : 20;
1190+
int limit = StringUtils.isNumeric(limitString) ? Integer.parseInt(limitString) : 0;
11911191
List<String> onlineUserList = StringUtils.isNotBlank(onlineUsers) ? Arrays.asList(onlineUsers.split(",")) : null;
11921192
List<UserBean> users = userService.getUsers(room, onlineUserList, filter, limit, showOnlyOnlineUsers);
11931193
if (StringUtils.isNotBlank(user)) {

0 commit comments

Comments
 (0)