diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2023-06-13 14:19:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-13 14:19:31 +0200 |
commit | 2c87972a3a84be400e5c69e2e5a727f21b4e457e (patch) | |
tree | 84aa12173063ff523b8df2675a17f7b2716c1c5b /roomserver/storage | |
parent | 82b73a49068771168ed52351f7be3b033692be4a (diff) |
Create user room key if needed (#3108)
Diffstat (limited to 'roomserver/storage')
-rw-r--r-- | roomserver/storage/shared/storage.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/storage/shared/storage.go b/roomserver/storage/shared/storage.go index 85a1ba7a..d7ca3cef 100644 --- a/roomserver/storage/shared/storage.go +++ b/roomserver/storage/shared/storage.go @@ -1686,7 +1686,7 @@ func (d *Database) SelectUserRoomPrivateKey(ctx context.Context, userID spec.Use return rErr } if roomInfo == nil { - return nil + return eventutil.ErrRoomNoExists{} } key, sErr = d.UserRoomKeyTable.SelectUserRoomPrivateKey(ctx, txn, stateKeyNID, roomInfo.RoomNID) |