Jorge Martin Espinosa
2c8b0d0b95
Make sure to save the tokens the Client might return when its session is restored ( #3378 )
...
* Use `ClientSessionDelegate` to ensure tokens are always updated.
Refreshed tokens on client restoration might not have been stored to disk if the token refresh happened before `RustMatrixClient` was built and the `ClientDelegate` was set in it.
Using `ClientSessionDelegate` should ensure the tokens refreshed callback is called at any point in time.
* Improve how assigning the Client works, fix docs
* Fix review comments
2 months ago
renovate[bot]
9fb82a1e86
Update dependency org.matrix.rustcomponents:sdk-android to v0.2.41 ( #3384 )
...
* Introduce value class UniqueId.
* Allow reactions on non-sent Event, the SDK can now handle it.
Also the SDK will manage local echo for reactions.
* Update dependency org.matrix.rustcomponents:sdk-android to v0.2.41
* Fixes after SDK upgrade:
- Use `ClientBuilderSlidingSync` to set `SlidingSyncVersionBuilder` in `RustMatrixClientFactory`.
- `Room.toggleReaction(emoji: String, eventId: EventId)` is now `Room.toggleReaction(emoji: String, uniqueId: UniqueId)`, since reactions can now be applied to local echoes too in the SDK.
* Rename exception case
* Fix wrong error case being used in test
---------
Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: Benoit Marty <benoitm@matrix.org>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2 months ago
Jorge Martin Espinosa
5920fd3f45
Make pinned events required state in SlidingSync ( #3385 )
...
This is needed to always have the pinned events of a room as soon as we open it.
2 months ago
Benoit Marty
f03bd282e7
Change the way we do not delete the crypto database.
2 months ago
Benoit Marty
8b65cf2f4b
Introduce SessionPathsFactory.
2 months ago
Benoit Marty
c41cb33410
Provide distinct cache directory to the Rust SDK.
2 months ago
ganfra
2193b9a300
Pinned events : start displaying actions in timeline
2 months ago
Benoit Marty
bc5ab0759c
Use `let`.
2 months ago
Benoit Marty
dfaa350167
Better handling on null reset handler.
...
This is not an error, but in this case, the reset identity is successful.
2 months ago
ganfra
741c3679ea
Timeline : add a mode to differentiate between live/focused/pinned
2 months ago
Benoit Marty
d867a5fe6f
Cleanup notification for redacted event.
2 months ago
ganfra
7310adcf07
Rust sdk : fix tests after api breaks
2 months ago
ganfra
2361b597d9
Rust sdk : handle the remaining changes
2 months ago
ganfra
88a581427c
Rust sdk : refactor LocalSendState to use the new failure states as iOS does
2 months ago
ganfra
e5b21c389e
Rust sdk : use newMessageShield state
2 months ago
Benoit Marty
6309137a53
Reorder imports
2 months ago
Benoit Marty
57d927e9aa
Suggestion for room alias.
...
Rename `Mention` to `IntentionalMention` for clarity
Remove dead code, there is no intentional mention for Room or RoomAlias.
Rename `IntentionalMention.AtRoom` to `IntentionalMention.Room` to match Rust naming
2 months ago
Benoit Marty
70558aa381
Move editMessageLambda to the constructor.
3 months ago
Benoit Marty
3676bca042
Make extension isCritical a val instead of a fun.
3 months ago
Benoit Marty
faf1e7da9f
Iterate on shield mapping and rendering
...
Also handle click on the timeline and information displayed on long click.
3 months ago
Jorge Martín
8a1e333aa7
Fix most review comments
3 months ago
Jorge Martín
5239e5ce81
Fix lint issues
3 months ago
Jorge Martín
7fd0ad09dc
Improve APIs, add tests
3 months ago
Jorge Martín
175bada0df
Improve existing APIs
3 months ago
Jorge Martín
ee7a31cace
Extract OIDC to its own module
3 months ago
Jorge Martín
4ab0b1074d
Initial implementation of the reset identity feature
3 months ago
Benoit Marty
01ece74343
Fix formatting and improve comment.
3 months ago
Benoit Marty
683f26c051
Ensure sessionPath is not reused for different homeserver.
3 months ago
Jorge Martin Espinosa
65718b3e96
Update the SDK bindings to `v0.2.39` ( #3288 )
...
- Rework `RoomSyncSubscriber` to work with the new `RoomListService.subscribeToRooms` API.
3 months ago
ganfra
5d2abd0350
timeline : allow rendering m.room.pinned_events
3 months ago
ganfra
80f1574b66
Pinned events : update sdk
3 months ago
ganfra
34fd21f440
Pinned events : introduce pinnedEventsTimeline method.
3 months ago
ganfra
0b32dbebb5
tests : refactor some classes
3 months ago
ganfra
46f5115c0a
Pinned events : clean up code
3 months ago
ganfra
66e06d7d1c
Pinned event : add some tests
3 months ago
ganfra
210e2092cd
Refactor userEventPermissions
3 months ago
ganfra
52a643f116
Pin : expose the new rust sdk apis
3 months ago
ganfra
ba123ccee1
Rust sdk update : fix test
3 months ago
ganfra
0149007dd4
Timeline Action : refactor how it's computed and align with iOS
3 months ago
ganfra
eec0e371f6
SSS : enhance getBaseClientBuilder to avoid mistakes.
3 months ago
Valere
b3b90a3b17
MessageShields | Fix test compilation
3 months ago
Valere
524f20bb40
Timeline UI | MessageShield Support
3 months ago
ganfra
a23e5e2400
Edit : fallback to room.edit when timeline item is not found.
3 months ago
ganfra
aebcc52309
Join Room : makes sure we can join by alias
3 months ago
Benoit Marty
5bda29ca7e
Rework FakeMatrixRoom so that it contains only lambdas. ( #3229 )
...
* Upgrade lint to 8.7.0-alpha01
* FakeMatrixRoom: lambda everywhere
Fix test compilation issues
3 months ago
Jorge Martin Espinosa
344e07bc0b
Cancel ringing call notification on call cancellation ( #3047 )
...
* Cancel ringing call notification on call cancellation
* Improve implementation, add some comments to clarify how it works.
* Make sure the call timeout job is cancelled
4 months ago
Jorge Martín
ff6ea43237
Don't reset the SSS toggle when logged out.
...
Instead, force a logout when toggling the option so user needs to log in again and create a new session using SSS.
4 months ago
Jorge Martín
b9f4403408
Add simplified sliding sync toggle to developer options
4 months ago
renovate[bot]
05e56e1ebc
Update dependency org.matrix.rustcomponents:sdk-android to v0.2.33 ( #3220 )
...
* Update dependency org.matrix.rustcomponents:sdk-android to v0.2.33
* Fix API breaks
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
4 months ago
Jorge Martin Espinosa
63df35e071
Use the right filename for log files so they're sorted in rageshakes ( #3219 )
...
* Use the right filename for log files so they're sorted in rageshakes
* Hide the suffix part so it's not changed by accident
4 months ago