mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
modules/m_room: Checkin the refs flag on head__modify.
This commit is contained in:
parent
7a93d798d8
commit
d2df4ca02d
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue