forked from MirrorHub/mautrix-whatsapp
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 {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to log in as bridge bot: %w", err)
|
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
|
return client, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue