0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-13 08:23:56 +01:00

ircd:Ⓜ️:vm: Add a specific edu option to vmopts.

This commit is contained in:
Jason Volk 2019-09-13 15:26:44 -07:00
parent bfc493ce64
commit 0c45fb827d
5 changed files with 8 additions and 0 deletions

View file

@ -219,6 +219,10 @@ struct ircd::m::vm::opts
/// true or false for all events in a room.
bool history {true};
/// Evaluate in EDU mode. Input must not have event_id and none will be
/// generated for it.
bool edu {false};
/// Bypass check for event having already been evaluated so it can be
/// replayed through the system (not recommended).
bool replays {false};

View file

@ -48,6 +48,7 @@ handle_edu(client &client,
m::vm::opts vmopts;
vmopts.node_id = request.origin;
vmopts.edu = true;
vmopts.notify_clients = false;
vmopts.notify_servers = false;
m::vm::eval eval

View file

@ -287,6 +287,7 @@ try
// Setup for a core injection of an EDU.
m::vm::copts opts;
opts.edu = true;
opts.prop_mask.reset(); // Clear all PDU properties
opts.notify_clients = false; // Client /sync already saw the ircd.presence

View file

@ -591,6 +591,7 @@ try
// EDU options
m::vm::copts opts;
opts.edu = true;
opts.prop_mask.reset();
// Don't need to notify clients, the /sync system understood the

View file

@ -239,6 +239,7 @@ ircd::m::typing::commit::commit(const m::typing &edu)
};
m::vm::copts opts;
opts.edu = true;
opts.prop_mask.reset();
opts.prop_mask.set("origin");
m::vm::eval