0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-04 21:08:57 +01:00

modules/m_room: Checkin the refs flag on head__modify.

This commit is contained in:
Jason Volk 2018-05-31 09:34:53 -07:00
parent 7a93d798d8
commit d2df4ca02d

View file

@ -302,7 +302,8 @@ head__reset(const m::room &room)
extern "C" void
head__modify(const m::event::id &event_id,
const db::op &op)
const db::op &op,
const bool &refs)
{
const m::event::fetch event
{
@ -318,7 +319,7 @@ head__modify(const m::event::id &event_id,
m::dbs::write_opts opts;
opts.op = op;
opts.head = true;
opts.refs = true;
opts.refs = refs;
opts.event_idx = index(event);
m::dbs::_index__room_head(txn, event, opts);