fix(sqlite): Use the correct column name for the sender of bundled room keys

This commit is contained in:
Damir Jelić
2025-05-22 13:03:29 +02:00
parent 60d3b3d56b
commit 064fd6cb0b

View File

@@ -785,7 +785,7 @@ trait SqliteObjectCryptoStoreExt: SqliteAsyncConnExt {
) -> Result<Option<Vec<u8>>> {
Ok(self
.query_row(
"SELECT bundle_data FROM received_room_key_bundle WHERE room_id = ? AND sender_user = ?",
"SELECT bundle_data FROM received_room_key_bundle WHERE room_id = ? AND sender_user_id = ?",
(room_id, sender_user),
|row| { row.get(0) },
)