From d2df4ca02d2c2f4dccc30dde21e353e15c258a35 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 31 May 2018 09:34:53 -0700 Subject: [PATCH] modules/m_room: Checkin the refs flag on head__modify. --- modules/m_room.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/m_room.cc b/modules/m_room.cc index 3890859b5..bddae2264 100644 --- a/modules/m_room.cc +++ b/modules/m_room.cc @@ -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);