Commit Graph

377 Commits

Author SHA1 Message Date
Jorge Martin Espinosa 46f78ef700 Integrate Element Call with widget API (#1581)
* Integrate Element Call with widget API.

- Add `appconfig` module and extract constants that can be overridden in forks there.
- Add an Element Call feature flag, disabled by default.
- Refactor the whole `ElementCallActivity`, move most logic out of it.
- Integrate with the Rust Widget Driver API (note the Rust SDK version used in this PR lacks some needed changes to make the calls actually work).
- Handle calls differently based on `CallType`.
- Add UI to create/join a call.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-10-19 15:38:43 +00:00
Marco Romano 33f5c8efb8 Add global context.cacheDir provider. (#1606)
## Type of change

- [ ] Feature
- [ ] Bugfix
- [x] Technical
- [ ] Other :

## Content

Dagger now provides the app's `cacheDir` when requesting a `@CacheDirectory File`  type.

## Motivation and context

To support some upcoming code that needs the `cacheDir` to be changed during tests.
2023-10-19 14:07:45 +02:00
Marco Romano 5a7f77bc92 Extract more content from audio messages. (#1607)
`TimelineItemAudioContent`:
- Use `java.time.Duration` instead of milliseconds. This will ease up things in the future because currently milliseconds are sent over the wire but in the future seconds will be sent (as per the stable MSC). Using `Duration` will allow our downstream code to be independent of what's passed over the wire.
- Rename `audioSource` property to `mediaSource` to better match its type.

`AudioMessageType`:
- Add and populate new fields `details` and `isVoiceMessage` to be used by voice messages.
2023-10-19 13:32:43 +02:00
Benoit Marty 21e24990c4 Improve and fix build_rust_sdk.sh after PR review 2023-10-16 18:29:25 +02:00
Benoit Marty cc2664c519 Use local SDK if the file exist 2023-10-16 13:31:26 +02:00
ganfra 76bbe4dbeb Misc: remove usage of blocking methods #1563 2023-10-13 12:16:31 +02:00
renovate[bot] 054d0a7145 Update dependency org.matrix.rustcomponents:sdk-android to v0.1.62 (#1562)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.62
* Add `sendVoiceMessage()` API from https://github.com/matrix-org/matrix-rust-sdk/pull/2697
* Fix other breaking changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Romano <marcor@element.io>
2023-10-13 08:19:30 +00:00
Benoit Marty 7389748f3e Konsist: add rule obout test class name, and fix existing issue 2023-10-12 15:03:50 +02:00
Benoit Marty 6be984efc8 Do not restore session with invalid token. 2023-10-10 10:20:31 +02:00
Benoit Marty 124d6bf95f SignedOut mode - WIP 2023-10-10 10:20:31 +02:00
Benoit Marty 8305912b14 Map the new fields of SessionData. 2023-10-10 10:20:31 +02:00
Benoit Marty 70cdb4a2fc Fix compilation warning in tests. 2023-10-10 10:01:01 +02:00
Jorge Martin Espinosa 776d935cfa Add more tests, particularly to the room list diffing (#1508)
* Add more tests to improve the covered area, particularly the room list diffing
2023-10-06 15:34:36 +02:00
Benoit Marty 34d05e01eb Fetch edited event in advanced (similar to reply mode). 2023-10-04 17:38:17 +02:00
Marco Romano 8f3987b98c Destroy EventTimelineItem pointer after use 2023-10-04 15:00:29 +02:00
Marco Romano 3a49ab984c Handle breaking change in innerRoom.edit() 2023-10-04 10:33:29 +02:00
Marco Romano fc205698c6 Display poll notifications in the notification drawer (#1467)
Display notifications for polls as if they were message events.
2023-09-29 16:57:03 +02:00
ganfra 74735605e4 Room : makes subscribeToSync/unsubscribeFromSync suspendable and makes sure we keep subscription count 2023-09-28 20:16:19 +02:00
Benoit Marty c9c7af6e06 Simplify the management of inReplyToEventTimelineItem 2023-09-27 11:31:12 +02:00
Benoit Marty a192a8823f Ensure getEventTimelineItemByEventId is called when we enter in reply mode. 2023-09-27 10:48:31 +02:00
Benoit Marty cf657df5fd Fix API break with Matrix SDK 0.1.58. 2023-09-27 09:44:58 +02:00
Benoit Marty 34631f53b3 Avoid hard-coded string. 2023-09-26 17:48:26 +02:00
Marco Romano f81a4bf0f8 Upgrade Rust SDK to v0.1.57 (#1401)
- Enables polls in room summaries from https://github.com/vector-im/element-x-android/pull/1387
- Accommodates a few breaking changes
2023-09-21 19:48:19 +00:00
ganfra 4883b63762 Remove usage of async-uniffi as it leads to a deadlocks and memory leaks (#1381) 2023-09-20 12:52:57 +02:00
ganfra c3df84cb7b Fix warning and yield 2023-09-19 18:06:56 +02:00
ganfra 0bd6ba0984 Fix room member infinite loop 2023-09-19 16:10:27 +02:00
ganfra f1ad735272 Merge pull request #1371 from vector-im/feature/fga/fix_anr
RoomList : fix ANR (#1370)
2023-09-19 14:17:37 +02:00
ganfra 6746bf5d44 RoomList : fix ANR (#1370) 2023-09-19 14:01:43 +02:00
Marco Romano 0d05df0651 Upgrade rust sdk to .55 (#1365)
Accomodates breaking changes.
2023-09-19 13:33:03 +02:00
David Langley bc29a31986 Merge branch 'develop' into dla/feature/room_list_decoration 2023-09-18 10:34:32 +01:00
ganfra 1d65cc90db Merge pull request #1358 from vector-im/feature/fga/fix_invalidated_room_summary
Fix RoomSummary: RoomListEntry.Invalidated
2023-09-18 11:08:15 +02:00
Benoit Marty 3e9f5bbfad Merge pull request #1351 from vector-im/feature/jme/1302-allow-users-to-change-their-avatars
Add preference screen for user profile
2023-09-18 10:58:42 +02:00
ganfra e73afad96c RoomSummary: RoomListEntry.Invalidated should not build empty room summary 2023-09-18 10:56:29 +02:00
ganfra bc68d47d1f Update rust-sdk to 0.1.54 2023-09-18 10:29:52 +02:00
Benoit Marty f7f9a78101 Cleanup and compact code. Also prefer usage of DayNightPreview. 2023-09-15 18:21:29 +02:00
Benoit Marty 2e9cc25759 Log the tag if present. 2023-09-15 16:52:46 +02:00
Jorge Martín 2ccafec564 Changes:
- Improve UI to match designs.
- Extract `EditableAvatarView` component.
- Create `LabelledOutlinedTextField`.
- Get strings from Localazy.
2023-09-15 14:04:21 +02:00
Jorge Martín 149677a2e6 Add preference screen for user profile 2023-09-15 12:16:47 +02:00
David Langley 4a3ffd37fb Use userDefinedNotificationMode. 2023-09-15 10:42:54 +01:00
David Langley 90fc5366d8 Merge branch 'develop' of https://github.com/vector-im/element-x-android into dla/feature/room_list_decoration 2023-09-15 10:26:24 +01:00
ganfra 7914ec0a28 Update rust sdk to 0.1.53 2023-09-15 10:27:57 +02:00
David Langley 9a234a875c Merge branch 'develop' of https://github.com/vector-im/element-x-android into dla/feature/room_list_decoration 2023-09-14 19:30:02 +01:00
ganfra 239730702d Merge pull request #1298 from vector-im/feature/fga/timeline_thread_decoration
Feature/fga/timeline thread decoration
2023-09-14 18:45:33 +02:00
ganfra cc33e39dc6 Merge branch 'develop' into feature/fga/timeline_thread_decoration 2023-09-14 16:57:20 +02:00
Benoit Marty b4546118f9 Account management with OIDC: split account and session management. #1303 2023-09-14 16:38:13 +02:00
David Langley ed1949aa51 Show a room list decoration for notification setting applied
- Add the UI
- Rebuild room summaries when push rules change or when user disables notifications(hide them all)
2023-09-14 14:24:13 +01:00
David Langley 9cf4346805 Merge branch 'develop' into dla/feature/connect_sdk_to_global_notifications_ui 2023-09-14 09:52:07 +01:00
Jorge Martin Espinosa 97bbb8296f Fix possible memory leak in EventMessageMapper. (#1326) 2023-09-14 08:30:41 +02:00
David Langley 0d53626077 Merge branch 'develop' into dla/feature/connect_sdk_to_global_notifications_ui 2023-09-13 13:00:11 +01:00
David Langley 1260272c33 Add tests, mocks and lint 2023-09-13 12:44:22 +01:00