0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

modules/media: Prevent saving full JSON for internal media and presence events.

This commit is contained in:
Jason Volk 2019-01-16 13:48:28 -08:00
parent 11607b3993
commit d798124c03
2 changed files with 5 additions and 1 deletions

View file

@ -216,9 +216,12 @@ commit__m_presence(const m::presence &content)
if(!exists(user)) if(!exists(user))
create(user.user_id); create(user.user_id);
m::vm::copts copts;
copts.json = false;
copts.history = false;
const m::user::room user_room const m::user::room user_room
{ {
user user, &copts
}; };
//TODO: ABA //TODO: ABA

View file

@ -235,6 +235,7 @@ try
m::vm::copts vmopts; m::vm::copts vmopts;
vmopts.history = false; vmopts.history = false;
vmopts.json = false;
const m::room room const m::room room
{ {
room_id, &vmopts room_id, &vmopts