Skip to content
Snippets Groups Projects
  1. Jan 08, 2024
    • Erik Johnston's avatar
      Port `EventInternalMetadata` class to Rust (#16782) · 5d3850b0
      Erik Johnston authored
      
      There are a couple of things we need to be careful of here:
      
      1. The current python code does no validation when loading from the DB,
      so we need to be careful to ignore such errors (at least on jki.re there
      are some old events with internal metadata fields of the wrong type).
      2. We want to be memory efficient, as we often have many hundreds of
      thousands of events in the cache at a time.
      
      ---------
      
      Co-authored-by: default avatarQuentin Gliech <quenting@element.io>
      Unverified
      5d3850b0
  2. Dec 01, 2023
  3. Nov 22, 2023
  4. Nov 21, 2023
  5. Oct 06, 2023
  6. Sep 28, 2023
  7. Sep 26, 2023
  8. Sep 05, 2023
  9. Aug 23, 2023
  10. Aug 02, 2023
  11. Jun 16, 2023
  12. Jun 12, 2023
  13. Jun 06, 2023
  14. May 04, 2023
  15. Apr 26, 2023
  16. Mar 07, 2023
  17. Mar 06, 2023
  18. Mar 03, 2023
  19. Mar 02, 2023
    • Patrick Cloke's avatar
      Update intentional mentions (MSC3952) to depend on... · 8ef324ea
      Patrick Cloke authored
      Update intentional mentions (MSC3952) to depend on `exact_event_property_contains` (MSC3966). (#15051)
      
      This replaces the specific `is_user_mention` push rule condition
      used in MSC3952 with the generic `exact_event_property_contains`
      push rule condition from MSC3966.
      Unverified
      8ef324ea
  20. Feb 28, 2023
    • Patrick Cloke's avatar
      Do not accept pattern_type from user input in push rules. (#15088) · e746f80b
      Patrick Cloke authored
      Internally the push rules module uses a `pattern_type` property for `event_match`
      conditions (and `related_event_match`) to mark the condition as matching the
      current user's Matrix ID or localpart.
      
      This is leaky to the Client-Server API where a user can successfully set a condition
      which provides `pattern_type` instead of `pattern` (note that there's no benefit to
      doing this -- the user can just use their own Matrix ID or localpart instead). When
      serializing back to the client the `pattern_type` property is converted into a proper
      `pattern`.
      
      The following changes are made to avoid this:
      
      * Separate the `KnownCondition::EventMatch` enum value into `EventMatch`
        and `EventMatchType`, each with their own expected properties. (Note that a
        similar change is made for `RelatedEventMatch`.)
      * Make it such that the `pattern_type` variants serialize to the same condition kind,
        but cannot be deserialized (since they're only provided by base rules).
      * As a final tweak, convert `user_id` vs. `user_localpart` values into an enum.
      Unverified
      e746f80b
  21. Feb 16, 2023
  22. Feb 14, 2023
  23. Feb 13, 2023
  24. Feb 10, 2023
  25. Feb 07, 2023
  26. Feb 03, 2023
  27. Feb 02, 2023
  28. Feb 01, 2023
  29. Jan 31, 2023
  30. Jan 27, 2023
    • Patrick Cloke's avatar
      Implement MSC3952: Intentional mentions (#14823) · 2a51f3ec
      Patrick Cloke authored
      MSC3952 defines push rules which searches for mentions in a list of
      Matrix IDs in the event body, instead of searching the entire event
      body for display name / local part.
      
      This is implemented behind an experimental configuration flag and
      does not yet implement the backwards compatibility pieces of the MSC.
      Unverified
      2a51f3ec
  31. Jan 19, 2023
  32. Dec 02, 2022
  33. Nov 29, 2022
  34. Nov 28, 2022
Loading