mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Removed state filter limit usage
Signed-off-by: Thibaut CHARLES cromfr@gmail.com
This commit is contained in:
parent
dd65a8fe68
commit
2ec5a1cec9
|
|
@ -72,8 +72,7 @@ const selectCurrentStateSQL = "" +
|
|||
" AND ( $2::text[] IS NULL OR sender = ANY($2) )" +
|
||||
" AND ( $3::text[] IS NULL OR NOT(sender = ANY($3)) )" +
|
||||
" AND ( $4::text[] IS NULL OR type = ANY($4) )" +
|
||||
" AND ( $5::text[] IS NULL OR NOT(type = ANY($5)) )" +
|
||||
" LIMIT $6"
|
||||
" AND ( $5::text[] IS NULL OR NOT(type = ANY($5)) )"
|
||||
|
||||
const selectJoinedUsersSQL = "" +
|
||||
"SELECT room_id, state_key FROM syncapi_current_room_state WHERE type = 'm.room.member' AND membership = 'join'"
|
||||
|
|
@ -189,8 +188,7 @@ func (s *currentRoomStateStatements) selectCurrentState(
|
|||
pq.StringArray(filter.Senders),
|
||||
pq.StringArray(filter.NotSenders),
|
||||
pq.StringArray(filter.Types),
|
||||
pq.StringArray(filter.NotTypes),
|
||||
filter.Limit)
|
||||
pq.StringArray(filter.NotTypes))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue