This commit is contained in:
Till Faelligen 2023-06-06 13:59:04 +02:00
parent 6c1ccfb56c
commit 5e2f4503b3
No known key found for this signature in database
GPG key ID: ACCDC9606D472758

View file

@ -1605,7 +1605,7 @@ func (d *Database) InsertUserRoomPrivateKey(ctx context.Context, userNID types.E
}
// InsertUserRoomPublicKey inserts a new user room key for the given user and room.
// Returns the newly inserted public key or an public private key. If there is
// Returns the newly inserted public key or an existing public key. If there is
// an error talking to the database, returns that error.
func (d *Database) InsertUserRoomPublicKey(ctx context.Context, userNID types.EventStateKeyNID, roomNID types.RoomNID, key ed25519.PublicKey) (result ed25519.PublicKey, err error) {
err = d.Writer.Do(d.DB, nil, func(txn *sql.Tx) error {