mirror of
https://github.com/matrix-construct/construct
synced 2024-09-29 20:28:52 +02: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
|
extern "C" void
|
||||||
head__modify(const m::event::id &event_id,
|
head__modify(const m::event::id &event_id,
|
||||||
const db::op &op)
|
const db::op &op,
|
||||||
|
const bool &refs)
|
||||||
{
|
{
|
||||||
const m::event::fetch event
|
const m::event::fetch event
|
||||||
{
|
{
|
||||||
|
@ -318,7 +319,7 @@ head__modify(const m::event::id &event_id,
|
||||||
m::dbs::write_opts opts;
|
m::dbs::write_opts opts;
|
||||||
opts.op = op;
|
opts.op = op;
|
||||||
opts.head = true;
|
opts.head = true;
|
||||||
opts.refs = true;
|
opts.refs = refs;
|
||||||
opts.event_idx = index(event);
|
opts.event_idx = index(event);
|
||||||
m::dbs::_index__room_head(txn, event, opts);
|
m::dbs::_index__room_head(txn, event, opts);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue