mirror of
https://github.com/maubot/maubot
synced 2025-09-07 01:30:38 +00:00
Add support for end-to-end encryption. Fixes #46
This commit is contained in:
parent
4e767a10e4
commit
69d7a4341b
17 changed files with 203 additions and 24 deletions
|
@ -23,6 +23,7 @@ import sqlalchemy as sql
|
|||
|
||||
from mautrix.types import UserID, FilterID, DeviceID, SyncToken, ContentURI
|
||||
from mautrix.util.db import Base
|
||||
from mautrix.client.state_store.sqlalchemy import RoomState, UserProfile
|
||||
|
||||
from .config import Config
|
||||
|
||||
|
@ -79,7 +80,7 @@ def init(config: Config) -> Engine:
|
|||
db = sql.create_engine(config["database"])
|
||||
Base.metadata.bind = db
|
||||
|
||||
for table in (DBPlugin, DBClient):
|
||||
for table in (DBPlugin, DBClient, RoomState, UserProfile):
|
||||
table.bind(db)
|
||||
|
||||
if not db.has_table("alembic_version"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue