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:
parent
e73ebfd151
commit
c29fca7b4d
1 changed files with 2 additions and 2 deletions
|
@ -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{}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue