From c10d714417366cb69944fc83db30845f377e480c Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 2 Apr 2021 14:11:59 +0300 Subject: [PATCH] Fix encryption getting messed up after receiving inbound olm sessions with SQLite --- crypto.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crypto.go b/crypto.go index 8335f09..7396093 100644 --- a/crypto.go +++ b/crypto.go @@ -141,9 +141,7 @@ func (helper *CryptoHelper) loginBot() (*mautrix.Client, error) { if err != nil { return nil, fmt.Errorf("failed to log in as bridge bot: %w", err) } - if len(deviceID) == 0 { - helper.store.DeviceID = resp.DeviceID - } + helper.store.DeviceID = resp.DeviceID return client, nil }