0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +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))
create(user.user_id);
m::vm::copts copts;
copts.json = false;
copts.history = false;
const m::user::room user_room
{
user
user, &copts
};
//TODO: ABA

View file

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