mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-21 14:44:35 -04:00
Add store-and-forward direct-to-device messaging
This commit is contained in:
parent
3e86dcf1c0
commit
e993925279
9 changed files with 288 additions and 4 deletions
|
@ -36,6 +36,7 @@ from .push_rule import PushRuleStore
|
|||
from .media_repository import MediaRepositoryStore
|
||||
from .rejections import RejectionsStore
|
||||
from .event_push_actions import EventPushActionsStore
|
||||
from .deviceinbox import DeviceInboxStore
|
||||
|
||||
from .state import StateStore
|
||||
from .signatures import SignatureStore
|
||||
|
@ -84,6 +85,7 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||
OpenIdStore,
|
||||
ClientIpStore,
|
||||
DeviceStore,
|
||||
DeviceInboxStore,
|
||||
):
|
||||
|
||||
def __init__(self, db_conn, hs):
|
||||
|
@ -108,6 +110,9 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||
self._presence_id_gen = StreamIdGenerator(
|
||||
db_conn, "presence_stream", "stream_id"
|
||||
)
|
||||
self._device_inbox_id_gen = StreamIdGenerator(
|
||||
db_conn, "device_inbox", "stream_id"
|
||||
)
|
||||
|
||||
self._transaction_id_gen = IdGenerator(db_conn, "sent_transactions", "id")
|
||||
self._state_groups_id_gen = StreamIdGenerator(db_conn, "state_groups", "id")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue