Skip to content
Snippets Groups Projects
  1. Jun 12, 2024
    • Benjamin Lee's avatar
      fix: de-index pdus when redacted · eb73d8c6
      Benjamin Lee authored and 🥺's avatar 🥺 committed
      
      bit of code dedupe as well
      
      Co-authored-by: default avatarstrawberry <strawberry@puppygock.gay>
      Signed-off-by: default avatarstrawberry <strawberry@puppygock.gay>
      eb73d8c6
    • Benjamin Lee's avatar
      factor search tokenization out into a function · 20a54aac
      Benjamin Lee authored and 🥺's avatar 🥺 committed
      
      This ensures that the tokenization algorithm will remain in sync between
      querying, indexing, and deindexing. The existing code had slightly
      different behavior for querying, because it did not discard words with
      >50 bytes. This was inconsequential, because >50 byte tokens are never
      present in the index.
      
      Signed-off-by: default avatarstrawberry <strawberry@puppygock.gay>
      20a54aac
    • Benjamin Lee's avatar
      fix dropped events in search · 81cd677b
      Benjamin Lee authored and 🥺's avatar 🥺 committed
      
      The previous code would drop some events entirely if any events between
      `skip` and `skip + limit` were not visible to the user. This would cause
      the set of events skipped by the `skip(skip)` method to extend past
      `skip` in the raw result set, because `skip(skip)` was being called
      *after* filtering out invisible events.
      
      This bug will become much more severe with a full filtering
      implementation, because it will be more likely for events to be filtered
      out. Currently, it is only possible to trigger with rooms that have
      history visibility set to "invited" or "joined".
      
      Signed-off-by: default avatarstrawberry <strawberry@puppygock.gay>
      81cd677b
    • Benjamin Lee's avatar
      fix missing next_batch for search · 73da353e
      Benjamin Lee authored and 🥺's avatar 🥺 committed
      
      The previous code would fail to return next_batch if any of the events
      in the window were not visible to the user. It would also return an
      unnecessary next_batch when no more results are available if the total
      number of results is exactly `skip + limit`.
      
      This bug will become much more severe with a full filtering
      implementation, because we will be more likely to trigger it by
      filtering out events in a search call. Currently, it is only possible to
      trigger with rooms that have history visibility set to "invited" or
      "joined".
      
      Signed-off-by: default avatarstrawberry <strawberry@puppygock.gay>
      73da353e
    • 🥺's avatar
      bump cargo.lock due to yanked httparse · d5677b6a
      🥺 authored and 🥺's avatar 🥺 committed
      
      Signed-off-by: default avatarstrawberry <strawberry@puppygock.gay>
      d5677b6a
  2. Jun 11, 2024
  3. Jun 10, 2024
  4. Jun 09, 2024
Loading