mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:46:01 -04:00
Merge two of the room join codepaths
There's at least one more to merge in. Side-effects: * Stop reporting None as displayname and avatar_url in some cases * Joining a room by alias populates guest-ness in join event * Remove unspec'd PUT version of /join/<room_id_or_alias> which has not been called on matrix.org according to logs * Stop recording access_token_id on /join/room_id - currently we don't record it on /join/room_alias; I can try to thread it through at some point.
This commit is contained in:
parent
66f9a49ce9
commit
cf81375b94
5 changed files with 73 additions and 69 deletions
|
@ -169,8 +169,15 @@ class ProfileHandler(BaseHandler):
|
|||
consumeErrors=True
|
||||
).addErrback(unwrapFirstError)
|
||||
|
||||
state["displayname"] = displayname
|
||||
state["avatar_url"] = avatar_url
|
||||
if displayname is None:
|
||||
del state["displayname"]
|
||||
else:
|
||||
state["displayname"] = displayname
|
||||
|
||||
if avatar_url is None:
|
||||
del state["avatar_url"]
|
||||
else:
|
||||
state["avatar_url"] = avatar_url
|
||||
|
||||
defer.returnValue(None)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue