mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
modules/client/rooms/state: Add conditional event.member for member events.
This commit is contained in:
parent
1a12b7331d
commit
95f14503cf
1 changed files with 8 additions and 0 deletions
|
@ -213,5 +213,13 @@ state__iov(const room &room,
|
|||
{ event, { "state_key", state_key }},
|
||||
};
|
||||
|
||||
const json::iov::add_if member_
|
||||
{
|
||||
event, type == "m.room.member", "membership", [&content]
|
||||
{
|
||||
return content.at("membership");
|
||||
}
|
||||
};
|
||||
|
||||
return commit(room, event, content);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue