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
Benjamin Bouvier
ac51adf1e5
feat: split the SlidingSyncBuilder with_timeouts method into two
...
Following a comment from Jonas in another PR.
2023-07-14 11:29:26 +02:00
Jonas Platte
bfed0907ed
Remove wasm_command_bot
2023-07-14 11:07:47 +02:00
Jonas Platte
b2f7ba33c8
Patch const_panic to not use packed reference
2023-07-14 10:46:52 +02:00
Jonas Platte
6d8764f4e7
Patch const_panic
2023-07-14 10:46:52 +02:00
Jonas Platte
57c5347e81
ffi: Move more types out of UDL
2023-07-14 10:46:52 +02:00
Jonas Platte
9cf1adbfa6
Upgrade UniFFI
2023-07-14 10:46:52 +02:00
Dirk Stolle
0141dab8c9
ci: Update actions/checkout in GitHub Actions workflows to v3
...
Signed-off-by: Dirk Stolle <striezel-dev@web.de >
2023-07-14 10:22:55 +02:00
Dirk Stolle
0461ebe739
Fix some typos
...
Signed-off-by: Dirk Stolle <striezel-dev@web.de >
2023-07-14 10:10:03 +02:00
Jonas Platte
81d28d1f46
ui: Remove read-only mode for timeline
...
It was used when getting the latest message was done through the timeline,
which is no longer the case.
2023-07-13 15:48:56 +02:00
Jonas Platte
d309cb3320
crypto-ffi: Use proc-macro definition of callback interfaces
2023-07-13 14:07:27 +02:00
Jonas Platte
3c2b2756b0
ci: Fix git ref comparison
2023-07-13 13:54:59 +02:00
Jonas Platte
5f924197fd
ffi: Merge impl blocks for sync and async exported methods
2023-07-13 13:13:50 +02:00
Jonas Platte
aee2ef6abf
ffi: Use async-uniffi instead of block_on in app module
2023-07-13 13:13:50 +02:00
Jonas Platte
6f2fee8965
Upgrade UniFFI
2023-07-13 13:13:50 +02:00
Jonas Platte
5abc781e1f
Remove matrix-sdk-crypto-js
...
It now lives in its own repository at
https://github.com/matrix-org/matrix-rust-sdk-crypto-web
2023-07-13 13:11:02 +02:00