mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
modules/media: Prevent saving full JSON for internal media and presence events.
This commit is contained in:
parent
11607b3993
commit
d798124c03
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue