mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-11-17 23:43:10 +01:00
Fix encryption getting messed up after receiving inbound olm sessions with SQLite
This commit is contained in:
parent
9a6d9f0383
commit
c10d714417
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue