mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 11:23:11 -06:00
fixed nil ignored users
This commit is contained in:
parent
4a4dac9fae
commit
ec9ccbdfb2
|
|
@ -298,7 +298,9 @@ func (s *outputRoomEventsStatements) selectRecentEvents(
|
|||
} else {
|
||||
stmt = common.TxStmt(txn, s.selectRecentEventsStmt)
|
||||
}
|
||||
|
||||
if ignoredUsers == nil {
|
||||
ignoredUsers = []string{}
|
||||
}
|
||||
rows, err := stmt.QueryContext(ctx, roomID, fromPos, toPos, limit, pq.StringArray(ignoredUsers))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Reference in a new issue