Commit Graph

6688 Commits

Author SHA1 Message Date
Jonas Platte
aaa84c1489 Ensure valid room state before sending requests from Room methods 2023-07-18 15:12:03 +02:00
Jonas Platte
293cd08634 Clean up double spaces in docs 2023-07-18 15:12:03 +02:00
Jonas Platte
e3ba1f1cb8 Add room API changes to changelog 2023-07-18 15:12:03 +02:00
Jonas Platte
f3da79e482 Split unreleased section of changelog into sub-sections 2023-07-18 15:12:03 +02:00
Jonas Platte
92df7b22ec Rename room::Common to Room
… and export it at the matrix_sdk crate root.
2023-07-18 15:12:03 +02:00
Jonas Platte
db84fcd8da Merge matrix_sdk::room::common into its parent module 2023-07-18 15:12:03 +02:00
Jonas Platte
67ef9c3fa0 Remove Room enum 2023-07-18 15:12:03 +02:00
Jonas Platte
85f66b1f96 Remove room::Joined 2023-07-18 15:12:03 +02:00
Jonas Platte
fbea71aaf5 Move room::Join methods to room::Common 2023-07-18 15:12:03 +02:00
Jonas Platte
3602807641 Remove invalid reference in docs 2023-07-18 15:12:03 +02:00
Jonas Platte
6ad8086905 Move get_messages related types into a new room submodule 2023-07-18 15:12:03 +02:00
Jonas Platte
0408bd5a98 Remove room::Left 2023-07-18 15:12:03 +02:00
Jonas Platte
ef00ef4158 Remove room::Joined::leave
… since room::Common::leave is now public and Joined deref's to Common.
2023-07-18 15:12:03 +02:00
Jonas Platte
9c8ed429b9 Move room::Left::forget to room::Common 2023-07-18 15:12:03 +02:00
Jonas Platte
05a817305e Remove room::Invited 2023-07-18 15:12:03 +02:00
Jonas Platte
10339ca15b Remove unreachable error variant 2023-07-18 15:12:03 +02:00
Jonas Platte
4621a47304 Move invite_details from room::Invited to room::Common 2023-07-18 15:12:03 +02:00
Jonas Platte
512dc18250 Remove room::Invited::accept_invitation in favor of room::Common::join 2023-07-18 15:12:03 +02:00
Jonas Platte
677907f8c5 Remove room::Invited::reject_invitation in favor of room::Common::leave 2023-07-18 15:12:03 +02:00
Jonas Platte
67abf707ff ui: Move ReactionSenderData to reactions module and re-export publically 2023-07-18 15:05:12 +02:00
Jonas Platte
145c796294 crypto: Remove Arc from fields of types that are no longer Clone 2023-07-18 14:58:11 +02:00
Jonas Platte
a1806254a8 crypto: Remove Clone from more store related types 2023-07-18 14:58:11 +02:00
Jonas Platte
7081c67c46 Remove Arc wrapping from memory store fields 2023-07-18 14:58:11 +02:00
Jonas Platte
10d9808ecf Remove dead code 2023-07-18 14:58:11 +02:00
Jonas Platte
1c26069871 Make memory stores not clonable
It's not actually necessary and allows simplifying them.
2023-07-18 14:58:11 +02:00
Benjamin Bouvier
2f2bb82fcf add tests for the previous commit 2023-07-18 14:29:58 +02:00
Benjamin Bouvier
e3cac2b637 fix: Don't mark a room as limited if the SS response doesn't contain any events 2023-07-18 14:29:58 +02:00
Jonas Platte
82bbb59965 ui: Update dedup_initial test to also test ID reuse
… and make it more realistic.
2023-07-18 14:20:29 +02:00
Jonas Platte
2720bddcc4 ui: Reuse IDs when removing and re-inserting an item 2023-07-18 14:20:29 +02:00
Jonas Platte
ab0d88ae3a ui: Pull out identical code in different branches 2023-07-18 14:20:29 +02:00
Jonas Platte
78ebb7f745 ui: Remove redundant semicolon 2023-07-18 14:20:29 +02:00
Jorge Martin Espinosa
26edf4169f ffi: Use forked tracing-android temporarily
… to have readable logs in Android.
2023-07-17 15:48:56 +00:00
Benjamin Bouvier
4ad95ab1a1 chore: rename SyncService::observe_state to state 2023-07-17 16:46:07 +02:00
Benjamin Bouvier
2b3b5e9e18 feat: introduce Idle initial state 2023-07-17 16:46:07 +02:00
Benjamin Bouvier
f1d67ad593 chore: remove RoomListService::is_syncing
It's preferrable that users make use of the `App::observe_state/current_state` methods, instead
as there's another sliding sync in the `App` and it properly unifies the current state of both.
2023-07-17 16:46:07 +02:00
Benjamin Bouvier
766d787779 chore: don't automatically start the App 2023-07-17 16:46:07 +02:00
Benjamin Bouvier
86ef0d41f8 feat: add getter to get the current state of the App 2023-07-17 16:46:07 +02:00
Jonas Platte
a503dccdcd base: Apply redaction to latest_event in RoomInfo when applicable 2023-07-17 16:36:37 +02:00
Jonas Platte
0bb7a9de7f base: Remove wrong documentation 2023-07-17 16:36:37 +02:00
Jonas Platte
8067319208 base: Add BaseRoomInfo::room_version() 2023-07-17 16:36:37 +02:00
Jonas Platte
70421cff54 base: Restrict visibility of RoomInfo#latest_event 2023-07-17 16:36:37 +02:00
Benjamin Bouvier
68a5f70a85 chore: rename App to SyncService 2023-07-17 14:38:38 +02:00
Benjamin Bouvier
a939522b1b test: add test for computing the limited flag 2023-07-17 13:51:45 +02:00
Benjamin Bouvier
b3183f6315 feat: compute limited approximation client-side 2023-07-17 13:51:45 +02:00
Benjamin Bouvier
2357a09d13 chore: remove spurious feature guarding against "experimental-sliding-sync"
The whole file is guarded against this feature.
2023-07-17 13:51:45 +02:00
Mauro
91ea0ee8b1 Add PowerLevels permission checks to room::Joined
… and the FFI `Room`. These were previously already available at the `room::Member` level.
2023-07-17 11:43:31 +00:00
Benjamin Bouvier
d98b296fad feat: reflect that push actions may not be available for a TimelineEvent
Before this patch, the inability to compute push actions would result in an empty vector of
push actions, leading to the false assumption that there's no push actions to account for,
while we were unable to compute them properly. This changes things up so that it's now the
user's responsibility to decide what to do when those push actions are missing.
2023-07-17 13:38:33 +02:00
Kévin Commaille
1dea482e43 ui: Expose the kind of a TimelineItem
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2023-07-14 19:17:17 +02:00
Kévin Commaille
a6a0d722b4 ui: Fix imports behind sliding-sync feature flag
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2023-07-14 13:05:39 +02:00
Jonas Platte
d82628725f ci: Remove serverName from setup-matrix-synapse arguments
We're getting warnings because this is not a supported parameter.
2023-07-14 12:05:02 +02:00