-
-
Notifications
You must be signed in to change notification settings - Fork 827
Use correct 1-1 room avatar after users leave #593
Use correct 1-1 room avatar after users leave #593
Conversation
The correct 1-1 avatar is used with rooms in which there are only two users with either "join" or "invite" as their membership (importantly, not "leave" or otherwise). (This is important when a user moves accounts and re-joins previously left 1-1 chats)
will this not have the side-effect that if i'm in a 1:1 with someone and they leave, the icon will change to just be me, rather than showing them? This will be quite unintuitive, given the history is with them... |
lgtm, assuming this matches the logic for calculating the name. (it feels wrong that these are maintained entirely separately........) |
It would be nice to push this sort of stuff back up to the js-sdk somehow. I'm now thinking that TL;DR this PR currently ignores the room name spec. If we want to consider users that have left, we need to update the spec really. |
Closing as this is an obscure edge-case of swapping accounts |
FTR @dbkr looked this over and gave the go-ahead. |
I'm going to merge this, knowingly excluding it from Riot 14 so that we can necessary QA on it. |
The correct 1-1 avatar is used with rooms in which there are only two users with either "join" or "invite" as their membership (importantly, not "leave" or otherwise).
(This is important when a user moves accounts and re-joins previously left 1-1 chats)