Skip to content
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

see current joined members to a room or rooms per member #5

Open
jjj333-p opened this issue Dec 11, 2023 · 0 comments
Open

see current joined members to a room or rooms per member #5

jjj333-p opened this issue Dec 11, 2023 · 0 comments
Labels
feature request a feature is wanted

Comments

@jjj333-p
Copy link
Owner

dendrite=# select * from syncapi_memberships limit 5;
            room_id            |            user_id             | membership |                   event_id                   | stream_pos | topological_pos 
-------------------------------+--------------------------------+------------+----------------------------------------------+------------+-----------------
 !nHIa7kVnDHVjnioH:pain.agency | @wa2_233257362130:pain.agency  | invite     | $kgFFDI48Ys5TAR6HSWleejBKZbUGIRQ056kHDJAf00s |     142806 |            4100
 !RoWLiUSm6QQcHv4u:pain.agency | @jjj333_p_1325:envs.net        | invite     | $bpIHLcMG9QjRVh-9-fhiAloqjMjPXRpBKg-UU8uhxZM |         18 |               8
 !RoWLiUSm6QQcHv4u:pain.agency | @jjj333_p_1325:envs.net        | join       | $XYJgNPuwJv23ecL10OyrRTc5u_rsWjNuND5xTlaf14o |         24 |              10
 !nHIa7kVnDHVjnioH:pain.agency | @wa2_2348028310407:pain.agency | invite     | $pkPyF9oOZY0fBBI2hez2oig7ssLnnlj0qdQJj15IFck |     765512 |            9746
 !nHIa7kVnDHVjnioH:pain.agency | @wa2_2348161174073:pain.agency | leave      | $er9QUU6duubatP0XogvdeRY6IHwe0KSeoIn_6K_RNLk |    1023870 |           16717
(5 rows)

dendrite=# 

the syncapi_memberships table includes data such that with a little parcing (or just creative psql commands) it would be convenient to make a command to show all rooms a user is in or all members in a room without evacuating that user or room. this could be useful for some monitoring tasks

perhaps something like !members [roomid] or !joinedroomsrooms [mxid]

@jjj333-p jjj333-p added the feature request a feature is wanted label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request a feature is wanted
Projects
None yet
Development

No branches or pull requests

1 participant