matrix-org / matrix-spec

The Matrix protocol specification
Apache License 2.0
195 stars 97 forks source link

The spec is not clear about who presence events should be sent to #1315

Open anoadragon453 opened 2 years ago

anoadragon453 commented 2 years ago

Link to problem area: https://spec.matrix.org/v1.4/client-server-api/#presence

Issue For Presence, the spec states that:

Presence events are sent to interested parties where users share a room membership.

It's not entirely clear what the spec means by an "interested party". Is this a definition that's up to implementations? Or is every user you share a room with considered an interested party?

I ask as I'd like to experiment with only sending presence updates to subsets of users (i.e. only those I share a DM with) and I'm not sure if the spec requires presence updates to be sent to all users I share a room with, or is simply saying that I can't share presence updates outside of those users I share a room with.

The latter makes more practical sense to me (especially in a federated world), but it's not clear.

Half-Shot commented 2 years ago

Certainly feels like it should be explicitly up to the implementation as to who gets presence BUT it must never send presence to users you do not share a room with.