Skip to content

Commit 17a5289

Browse files
committed
Specify table name in FindSharedRooms
1 parent eec23d0 commit 17a5289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appservice/sqlstatestore/statestore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (store *SQLStateStore) FindSharedRooms(userID id.UserID) (rooms []id.RoomID
118118
rows, err := store.Query(`
119119
SELECT room_id FROM mx_user_profile
120120
LEFT JOIN portal ON portal.mxid=mx_user_profile.room_id
121-
WHERE user_id=$1 AND portal.encrypted=true
121+
WHERE mx_user_profile.user_id=$1 AND portal.encrypted=true
122122
`, userID)
123123
if err != nil {
124124
store.Log.Warn("Failed to query shared rooms with %s: %v", userID, err)

0 commit comments

Comments
 (0)