Archived
1
0
Fork 0

feat(matrix): log e2ee status

Signed-off-by: xtex <xtexchooser@duck.com>
This commit is contained in:
xtex 2023-09-11 12:48:02 +08:00
parent 95736eea91
commit 4e44feca89
Signed by: xtex
GPG key ID: B918086ED8045B91

View file

@ -41,5 +41,9 @@ if homeserver and user and token:
store_path=store_path_nio,
config=AsyncClientConfig(store_sync_tokens=True))
bot.restore_login(user, device_id, token)
if bot.olm:
Logger.info(f"Matrix E2E encryption support available")
else:
Logger.info(f"Matrix E2E encryption support not available")
else:
bot = False