Fix encrypting outgoing Matrix events after restart
This commit is contained in:
@@ -48,8 +48,14 @@ class MatrixHandler(BaseMatrixHandler):
|
||||
previously_typing: Dict[RoomID, Set[UserID]]
|
||||
|
||||
def __init__(self, context: 'Context') -> None:
|
||||
prefix, suffix = context.config["bridge.username_template"].format(userid=":").split(":")
|
||||
homeserver = context.config["homeserver.domain"]
|
||||
self.user_id_prefix = f"@{prefix}"
|
||||
self.user_id_suffix = f"{suffix}:{homeserver}"
|
||||
|
||||
super(MatrixHandler, self).__init__(context.az, context.config, loop=context.loop,
|
||||
command_processor=com.CommandProcessor(context))
|
||||
|
||||
self.bot = context.bot
|
||||
self.previously_typing = {}
|
||||
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@ ruamel.yaml>=0.15.35,<0.17
|
||||
python-magic>=0.4,<0.5
|
||||
commonmark>=0.8,<0.10
|
||||
aiohttp>=3,<4
|
||||
mautrix==0.5.0.beta8
|
||||
mautrix==0.5.0.beta9
|
||||
telethon>=1.10,<1.12
|
||||
telethon-session-sqlalchemy>=0.2.14,<0.3
|
||||
|
||||
Reference in New Issue
Block a user