0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 05:08:59 +02:00

modules/client/rooms/join: Minor simplify.

This commit is contained in:
Jason Volk 2019-07-15 22:41:38 -07:00
parent 270cf6564c
commit 594627e945

View file

@ -737,11 +737,17 @@ try
vmopts.infolog_accept = true;
vmopts.fetch = false;
vmopts.eval = false;
vmopts.user_id = user_id;
vmopts.room_version = room_version;
const m::event::id::buf ret{vm::eval
const vm::eval eval
{
event, content, vmopts
}};
};
const m::event::id::buf &ret
{
eval.event_id
};
if(unlikely(!ret))
throw m::UNAVAILABLE