Explorar o código

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

Tulir Asokan %!s(int64=4) %!d(string=hai) anos
pai
achega
c10d714417
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      crypto.go

+ 1 - 3
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
 }