0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 07:20:55 +01:00

ircd:Ⓜ️:vm: Ensure eval.event_id is assigned on inject.

This commit is contained in:
Jason Volk 2019-09-16 13:24:19 -07:00
parent e73ebfd151
commit c29fca7b4d

View file

@ -491,7 +491,7 @@ ircd::m::vm::inject1(eval &eval,
const event::id &event_id
{
opts.prop_mask.has("event_id")?
make_id(m::event{event}, eval.room_version, eval.event_id):
eval.event_id.assigned(make_id(m::event{event}, eval.room_version, eval.event_id)):
event::id{}
};
@ -644,7 +644,7 @@ ircd::m::vm::inject3(eval &eval,
const event::id &event_id
{
opts.prop_mask.has("event_id")?
make_id(m::event{event}, eval.room_version, eval.event_id):
eval.event_id.assigned(make_id(m::event{event}, eval.room_version, eval.event_id)):
event::id{}
};