Fix encryption getting messed up after receiving inbound olm sessions with SQLite

This commit is contained in:
Tulir Asokan 2021-04-02 14:11:59 +03:00
parent 9a6d9f0383
commit c10d714417

View file

@ -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
}