synapse/changelog.d
Andrew Morgan a699c044b6
Abstract code for stripping room state into a separate method (#8671)
This is a requirement for [knocking](https://github.com/matrix-org/synapse/pull/6739), and is abstracting some code that was originally used by the invite flow. I'm separating it out into this PR as it's a fairly contained change.

For a bit of context: when you invite a user to a room, you send them [stripped state events](https://matrix.org/docs/spec/server_server/unstable#put-matrix-federation-v2-invite-roomid-eventid) as part of `invite_room_state`. This is so that their client can display useful information such as the room name and avatar. The same requirement applies to knocking, as it would be nice for clients to be able to display a list of rooms you've knocked on - room name and avatar included.

The reason we're sending membership events down as well is in the case that you are invited to a room that does not have an avatar or name set. In that case, the client should use the displayname/avatar of the inviter. That information is located in the inviter's membership event.

This is optional as knocks don't really have any user in the room to link up to. When you knock on a room, your knock is sent by you and inserted into the room. It wouldn't *really* make sense to show the avatar of a random user - plus it'd be a data leak. So I've opted not to send membership events to the client here. The UX on the client for when you knock on a room without a name/avatar is a separate problem.

In essence this is just moving some inline code to a reusable store method.
2020-10-27 18:42:46 +00:00
..
.gitignore
8455.bugfix e2e: ensure we have both master and self-signing key (#8455) 2020-10-26 18:37:47 +00:00
8519.feature Add an admin api to delete local media. (#8519) 2020-10-26 17:02:28 +00:00
8539.feature Split admin API for reported events into a detail and a list view (#8539) 2020-10-26 18:16:37 +00:00
8580.bugfix Check status codes that profile handler returns (#8580) 2020-10-26 13:55:21 +00:00
8582.doc Added basic instructions for Azure AD to OpenId documentation (#8582) 2020-10-26 17:49:55 +00:00
8614.misc Don't instansiate Requester directly (#8614) 2020-10-22 10:11:06 +01:00
8615.misc Type hints for RegistrationStore (#8615) 2020-10-22 11:56:58 +01:00
8620.bugfix Add type hints for account validity handler (#8620) 2020-10-26 14:17:31 -04:00
8621.misc Remove unused OPTIONS handlers. (#8621) 2020-10-22 08:35:55 -04:00
8627.bugfix Fix email notifications for invites without local state. (#8627) 2020-10-23 10:41:32 +01:00
8628.bugfix Don't 500 for invalid group IDs (#8628) 2020-10-22 13:19:06 +01:00
8632.bugfix Fix handling of User-Agent headers with bad utf-8. (#8632) 2020-10-23 17:12:59 +01:00
8634.misc Changelog 2020-10-22 18:33:02 +01:00
8639.misc Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
8640.misc Start fewer opentracing spans (#8640) 2020-10-26 09:30:19 +00:00
8643.bugfix Fix a bug in the joined_rooms admin API (#8643) 2020-10-26 12:25:48 -04:00
8644.misc Add field `total` to device list in admin API (#8644) 2020-10-26 14:07:51 +00:00
8647.feature Add admin API to list users' local media (#8647) 2020-10-27 14:12:31 +00:00
8657.doc Fix filepath of Dex example config (#8657) 2020-10-26 16:53:11 +00:00
8668.misc Don't unnecessarily start bg process while handling typing. (#8668) 2020-10-27 15:32:19 +00:00
8670.misc Don't unnecessarily start bg process in replication sending loop. (#8670) 2020-10-27 17:37:08 +00:00
8671.misc Abstract code for stripping room state into a separate method (#8671) 2020-10-27 18:42:46 +00:00