mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 17:23:53 +01:00
In the initial sync api, return the inviter for rooms in the 'invited' state
This commit is contained in:
parent
c6950b18cc
commit
3d1cae0e79
1 changed files with 4 additions and 0 deletions
|
@ -264,6 +264,10 @@ class MessageHandler(BaseHandler):
|
||||||
"room_id": event.room_id,
|
"room_id": event.room_id,
|
||||||
"membership": event.membership,
|
"membership": event.membership,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if event.membership == Membership.INVITE:
|
||||||
|
d["inviter"] = event.user_id
|
||||||
|
|
||||||
ret.append(d)
|
ret.append(d)
|
||||||
|
|
||||||
if event.membership != Membership.JOIN:
|
if event.membership != Membership.JOIN:
|
||||||
|
|
Loading…
Reference in a new issue