mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-27 02:31:15 -04:00
Necessary for the `.m.rule.invite_for_me` rule that should only happen in invited rooms. Requires to create a `Notification` type that accepts stripped state events. It is simpler than Ruma's type because it lacks fields with data that is made up or redundant. Tested locally with Fractal. Fixes #1912. --- * Upgrade Ruma Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * base-client: Support notifications in invited rooms Necessary for the .m.rule.invite_for_me rule that should only happen in invited rooms. Requires to create a Notification type that accepts stripped state events. It also removes fields with data that is made up or redundant. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * matrix-sdk-test: Add macros to construct raw sync or stripped state events Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * client: Add tests for register_notification_handler Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * Upgrade Ruma Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * Fix base changelog Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * Fix methods on Room Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * Fix FFI Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * Fix FFI RoomMember Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * Simplify and_then chain Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> --------- Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>