Member list silently truncated at 100 — "Showing N of N" shows array length instead of actual total

Đang mở
#1,286 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@swarnendusahu10-dotcom đang làm issue này rồi.

Từ ngày 30/10/2026.

  • #1411 của @swarnendusahu10-dotcom — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
56/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript, react
Lĩnh vực
api, frontend

Hướng nghiên cứu

Bắt đầu với getChannelMembers() trong EmbeddedChatApi.ts:1082 và RoomMember.js:166, sau đó theo dõi channelInfo từ phản hồi /rooms.info và dữ liệu thành viên được ChatInput sử dụng cho tính năng tự động hoàn thành lượt mention. Xác minh hành vi lấy thành viên đối với các phòng có hơn 100 người dùng và tổng số trên thanh bên; hoàn tất khi tổng số phản ánh usersCount và có thể tìm thấy các thành viên nằm ngoài trang đầu tiên.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

getChannelMembers() in EmbeddedChatApi.ts:1082 calls /channels.members?roomId=X without count or offset parameters. Rocket.Chat defaults to returning 100 results per page, so rooms with more than 100 members silently lose the rest.

The Members sidebar then displays "Showing 100 of 100" because RoomMember.js:166 uses filteredMembers.length for both numbers — the actual usersCount from the /rooms.info response (already stored in channelInfo via Zustand) is never read.

This also affects the mention autocomplete (@ popup in ChatInput), which only searches the first 100 members.

Steps to reproduce:
  1. Join or create a room with more than 100 members
  2. Open the Members sidebar
  3. Observe "Showing 100 of 100" even though the room has more members
  4. Try to @-mention a user beyond the first 100 — they won't appear in the autocomplete
Expected behavior:

The sidebar should show "Showing 100 of 350" (using channelInfo.usersCount for the total) and ideally paginate or fetch all members.

Actual behavior:

Shows "Showing 100 of 100". No indication that members are missing. Mention autocomplete can't find users beyond the first page.

Ngôn ngữ chính
JavaScript
Star
171
Fork
421
Merge trung bình
3 ngày 6 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của RocketChat/EmbeddedChat

Tất cả issue của RocketChat/EmbeddedChat

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.