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.
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.
Link to problem area: https://spec.matrix.org/v1.4/client-server-api/#presence
Issue For Presence, the spec states that:
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.