0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

modules/client/rooms/state: Add conditional event.member for member events.

This commit is contained in:
Jason Volk 2018-06-04 23:17:56 -07:00
parent 1a12b7331d
commit 95f14503cf

View file

@ -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);
}