-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Add an API for listing users in a room/channel #742
Comments
I'd imagine this would be implemented like a bunch of other methods on usersForRoom: (room) ->
@adapter.usersForRoom user You can also get pretty far by getting a listing of each room at startup, then having a |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is a pretty important enhancement and should stay open? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Seriously? |
Any workarounds to get the list of users in a specific channel? |
It seems to be like at the moment a user object in the brain can only store a single room, so e.g. the IRC adapter just overwrites the user data when a user is present in multiple rooms (with the last one it sees). Also, there's doesn't seem to be an API for removing user info, but only for adding it. I'm currently implementing Web Push notifications for people offline/away users, and having up-to-date and complete data about who's online in which room would make this both much easier and more efficient, as well as compatible with not just the one or two adapters I'll hack it into now. |
내 능력을 나도 잘모르겠다. 당신은 해커인가? |
This would be really helpful for scripts that address all users, check whether a user is in a channel, etc.
The text was updated successfully, but these errors were encountered: