aboutsummaryrefslogtreecommitdiff
path: root/syncapi/storage/sqlite3/syncserver.go
diff options
context:
space:
mode:
Diffstat (limited to 'syncapi/storage/sqlite3/syncserver.go')
-rw-r--r--syncapi/storage/sqlite3/syncserver.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/syncapi/storage/sqlite3/syncserver.go b/syncapi/storage/sqlite3/syncserver.go
index 8ab1d404..5ba07617 100644
--- a/syncapi/storage/sqlite3/syncserver.go
+++ b/syncapi/storage/sqlite3/syncserver.go
@@ -95,6 +95,10 @@ func (d *SyncServerDatasource) prepare() (err error) {
if err != nil {
return err
}
+ sendToDevice, err := NewSqliteSendToDeviceTable(d.db)
+ if err != nil {
+ return err
+ }
d.Database = shared.Database{
DB: d.db,
Invites: invites,
@@ -103,6 +107,8 @@ func (d *SyncServerDatasource) prepare() (err error) {
BackwardExtremities: bwExtrem,
CurrentRoomState: roomState,
Topology: topology,
+ SendToDevice: sendToDevice,
+ SendToDeviceWriter: internal.NewTransactionWriter(),
EDUCache: cache.New(),
}
return nil