diff options
author | Alex <d.lexand@gmail.com> | 2024-07-27 22:30:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-27 22:30:17 +0200 |
commit | 989795973103c463a33f053663c6a8616177186c (patch) | |
tree | 1f37145cbbd48fb75d3e8bfa4785ab6fa8e2832a /test/testrig/base.go | |
parent | affb6977e43ad5051761d0de650370f421f751b5 (diff) |
Fix: Edited messages appear twice in fulltext search (#3363)
As stated in https://github.com/matrix-org/dendrite/issues/3358 the
search response contains both original and edited message.
This PR fixes it by removing of the original message from the fulltext
index after indexing the edit message event.
I also made some cosmetic changes/fixes i found in the code
Signed-off-by: `Alexander Dubovikov <d.lexand@gmail.com>`
Diffstat (limited to 'test/testrig/base.go')
-rw-r--r-- | test/testrig/base.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/testrig/base.go b/test/testrig/base.go index 95370459..a21cfe80 100644 --- a/test/testrig/base.go +++ b/test/testrig/base.go @@ -71,6 +71,7 @@ func CreateConfig(t *testing.T, dbType test.DBType) (*config.Dendrite, *process. SingleDatabase: false, }) cfg.Global.ServerName = "test" + cfg.SyncAPI.Fulltext.Enabled = true cfg.SyncAPI.Fulltext.InMemory = true // use a distinct prefix else concurrent postgres/sqlite runs will clash since NATS will use // the file system event with InMemory=true :( |