mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-04 20:53:09 -06:00
Filter on m.room.message
This commit is contained in:
parent
2c81466593
commit
1a4d898278
|
|
@ -121,8 +121,12 @@ func Search(req *http.Request, device *api.Device, syncDB storage.Database, fts
|
|||
eventScore[hit.ID] = hit
|
||||
}
|
||||
|
||||
// Filter on m.room.message, as otherwise we also get events like m.reaction
|
||||
// which "breaks" displaying results in Element Web.
|
||||
types := []string{"m.room.message"}
|
||||
roomFilter := &gomatrixserverlib.RoomEventFilter{
|
||||
Rooms: &rooms,
|
||||
Types: &types,
|
||||
}
|
||||
|
||||
evs, err := syncDB.Events(ctx, wantEvents)
|
||||
|
|
|
|||
Loading…
Reference in a new issue