-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
Hmm. We'd need to make sure clients out there aren't accidentally relying on this |
Clients checked:
@richvdh says that riot-android does call it, but user_id wasn't always returned. matrix.org doesn't respond to this endpoint so I'm feeling confident that this client won't be affected either. |
Could you test with your phone? |
Sure, but I don't know how you would cause Riot to do a GET /presence request to be honest. |
It looks like this is ready for review, but not 100% sure all the above questions were answered. @Half-Shot is this ready from your POV? |
Ready from my PoV. I'm happy that the majority of clients either do not support presence, or do not use the extra field from this endpoint. |
That's mostly because presence currently isn't that polished in synapse and receiving presence via /sync is also enough in many cases (where you can't limit the events received anyway, if that issue is still open). Anyway, I can confirm that Nheko also doesn't use or even support the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me.
I think the backwards compatibility concerns are pretty minimal given the investigation that was done.
* commit '03619324f': Create a ListenerConfig object (#7681) Fix changelog wording 1.15.1 Wrap register_device coroutine in an ensureDeferred (#7684) Ensure the body is a string before comparing push rules. (#7701) Ensure etag is a string for GET room_keys/version response (#7691) Update m.id.phone to use 'phone' instead of 'number' (#7687) Fix "There was no active span when trying to log." error (#7698) Enable 3PID add/bind/unbind endpoints on r0 routes Discard RDATA from already seen positions. (#7648) Replace iteritems/itervalues/iterkeys with native versions. (#7692) Fix warnings about losing log context during UI auth. (#7688) Fix a typo when comparing the URI & method during UI Auth. (#7689) Remove "user_id" from GET /presence. (#7606) Increase the default SAML session expirary time to 15 minutes. (#7664) fix typo in sample_config.yaml (#7652) Take out a lock before modifying _CACHES (#7663) Add option to enable encryption by default for new rooms (#7639) Clean-up the fallback login code. (#7657)
This reverts commit a3fbc23.
…r_id Revert "Remove "user_id" from GET /presence. (#7606)"
https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-presence-userid-status doesn't include a
user_id
, and given the request URL includes the user_id I suspect there is limited value in diverging from the spec.