mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 00:10:59 +01:00
modules/client/rooms/join: Minor simplify.
This commit is contained in:
parent
270cf6564c
commit
594627e945
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue