-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
show offline users #337
Comments
@haosdent doing this on demo server could break clients =P there is so much users to show that it is not a good idea. we'll optimize the members list soon ;) |
LoL. Does the config part is OK now? If it's OK, could config this through settings. I could add it. |
yes, it's working. you could try to do it. =) only for you to know, will be there a button to toggle offline users' visibility.. later your settings may control if this button will displayed or not, something like "always show offline users: yes or not" |
Thanks, let me do it. |
thank you 😃 |
np |
I wish I saw this before I implemented this in our fork ( sscpac/pull/42 ). I also updated the user names to be styled corresponding to their status. |
@bbrockman Have you tested with 10.000 users in a single room? |
@rodrigok We have not, but luckily for us, our customer base is much smaller 😃 |
Ok, but this PR will break our online demo 😄 We need a config view for rooms, so this can be optional per room, but, until there, can you add one IF to render offline users only if room has less then 200 users? |
We have quite different use cases! |
Hi @bbrockman they may be a bit different, but we surely can add some "IFs" just to accommodate this differences? It should be very straight forward to test the size of the room and decide the best behavior, do you agree? |
Certainly. |
@bbrockman GREAT! 👍 We are looking forward for you pull request! |
Maybe to keep from breaking the server. Show the total amount of users like you already do. But only show in the list x amount. Like online users, plus 10 of the offline. With a button to load more. This way you limit it to small chunks. Of course search would search through all offline / online users. |
@geekgonecrazy, maybe, we have 2 issues:
Today we have an array with all usernames of users with subscriptions to the room, this array is at the client side so we can render the array size (users count) and loop to verify and show online users (online users are loaded in the user's collection). If we use the array to populate the mention list we will don't have the user's name, only the username, or we can create another array getting all user's names from db. In this case we will have only the users in the room. The best solution IMHO is use remote search for mentions and, about the user list, we can do the pagination. |
That seems like the best solution to me. Sounds like maintaining a list of users client side causes complications. Also maybe not guaranteed up to date? Maybe caching to an extent client side for speed? But hit the server for authoritative response + additional mentions? |
I think we can start with the remote search and monitor the performance impact to decide if we need to create some kind of client cache. |
Done |
Fix webrtc screen share
I suggest change the code from
to
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: