浏览代码

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

Tulir Asokan 4 年之前
父节点
当前提交
c10d714417
共有 1 个文件被更改,包括 1 次插入3 次删除
  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
 }