David Langley
b7ebff0e75
Add new ui for room notifications screen
...
- Add new ui for room notifications screen
- Fix error when changing default notification setting.
2023-10-20 21:08:44 +01:00
David Langley
3ecabd71c0
Merge branch 'develop' into dla/feature/custom_room_notification_settings_list
2023-10-19 16:36:30 +01:00
David Langley
4b43168913
Fix tests and lint
2023-10-19 16:17:57 +01:00
Marco Romano
d7054fb34d
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
80870adfe3
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
David Langley
af4a1d3fd6
Merge branch 'develop' of https://github.com/vector-im/element-x-android into dla/feature/custom_room_notification_settings_list
2023-10-18 22:07:14 +01:00
David Langley
72e7d92571
Add tests
2023-10-17 16:08:35 +01:00
Benoit Marty
359db36172
Improve and fix build_rust_sdk.sh after PR review
2023-10-16 18:29:25 +02:00
Benoit Marty
b06dbb566e
Use local SDK if the file exist
2023-10-16 13:31:26 +02:00
ganfra
9d12d82112
Misc: remove usage of blocking methods #1563
2023-10-13 12:16:31 +02:00
renovate[bot]
31d5e7395f
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
7afae87b3e
Konsist: add rule obout test class name, and fix existing issue
2023-10-12 15:03:50 +02:00
Benoit Marty
07a2643bd2
Merge pull request #1549 from vector-im/feature/bma/unknownMsgtype
...
Render unknown msgtype
2023-10-12 10:56:35 +02:00
Benoit Marty
305fb81b8a
Merge pull request #1520 from vector-im/feature/bma/sessionDb
...
Improve session db and improve deleted session behavior
2023-10-11 16:56:54 +02:00
Benoit Marty
266612f9da
MessageContent.type cannot be null
2023-10-11 16:14:15 +02:00
Benoit Marty
24963915b9
Move OtherState to its own file.
2023-10-11 16:06:49 +02:00
Benoit Marty
8e581109aa
Move FormattedBody to its own file.
2023-10-11 16:05:47 +02:00
Benoit Marty
345c032a4e
Move MembershipChange to its own file.
2023-10-11 16:05:19 +02:00
Benoit Marty
987b97a4b9
Move MessageFormat to its own file.
2023-10-11 16:04:41 +02:00
Benoit Marty
f6bd33231d
Move MessageType to its own file.
2023-10-11 16:03:18 +02:00
Benoit Marty
d79affb3a4
Move InReplyTo to its own file.
2023-10-11 16:01:36 +02:00
Benoit Marty
16841e9721
data object
2023-10-10 17:31:04 +02:00
Benoit Marty
529872a4f2
Do not restore session with invalid token.
2023-10-10 10:20:31 +02:00
Benoit Marty
0b3fcecbed
SignedOut mode - WIP
2023-10-10 10:20:31 +02:00
Benoit Marty
fea1fe0f3c
Map the new fields of SessionData.
2023-10-10 10:20:31 +02:00
Benoit Marty
69ac38ed10
Fix compilation warning in tests.
2023-10-10 10:01:01 +02:00
Jorge Martin Espinosa
1bfe7b7224
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
Jorge Martin Espinosa
ae7c2257df
Improve coverage in permalinks package ( #1502 )
...
* Improve coverage in permalinks package
2023-10-06 11:37:26 +02:00
Benoit Marty
19f011b19f
Convert object to data object
2023-10-05 10:43:00 +02:00
Benoit Marty
937e053d46
Fetch edited event in advanced (similar to reply mode).
2023-10-04 17:38:17 +02:00
Marco Romano
4a32a78884
Destroy EventTimelineItem pointer after use
2023-10-04 15:00:29 +02:00
Marco Romano
55154ce0b3
Handle breaking change in innerRoom.edit()
2023-10-04 10:33:29 +02:00
Benoit Marty
cf4ad7649f
Merge pull request #1465 from vector-im/feature/bma/codeCoverage
...
Improve code coverage
2023-10-02 10:18:31 +02:00
Marco Romano
f10040f729
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
Benoit Marty
e47e9b12b0
Add test for MatrixClientsHolder
2023-09-29 15:34:02 +02:00
ganfra
e6b32163ee
Room : makes subscribeToSync/unsubscribeFromSync suspendable and makes sure we keep subscription count
2023-09-28 20:16:19 +02:00
Benoit Marty
d32a7c6ddf
Simplify the management of inReplyToEventTimelineItem
2023-09-27 11:31:12 +02:00
Benoit Marty
9d0e185d1c
Ensure getEventTimelineItemByEventId is called when we enter in reply mode.
2023-09-27 10:48:31 +02:00
Benoit Marty
79f37f1504
Fix API break with Matrix SDK 0.1.58.
2023-09-27 09:44:58 +02:00
Benoit Marty
c380ed538d
Avoid hard-coded string.
2023-09-26 17:48:26 +02:00
David Langley
a9d87da1ff
Add roomsWithUserDefinedRules data and render list
...
- get roomsWithUserDefinedRules from rust
- add to state in the presenter
- render in the edit defaults view as a list
2023-09-22 16:16:52 +01:00
Marco Romano
b6c0ea8d71
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
Marco Romano
837443c690
Properly format lastMessage when it belongs to a poll. ( #1387 )
...
Takes care of properly formatting a room's last message when it belongs to a poll.
NB: Polls still aren't exposed as a room's `last_message` from the rust SDK, so this code won't actually run yet. This will happen after integrating rust SDK version 0.1.57 which includes: https://github.com/matrix-org/matrix-rust-sdk/pull/2580
2023-09-21 15:20:15 +02:00
ganfra
87125e0ea3
Remove usage of async-uniffi as it leads to a deadlocks and memory leaks ( #1381 )
2023-09-20 12:52:57 +02:00
ganfra
85125aa854
Fix warning and yield
2023-09-19 18:06:56 +02:00
ganfra
3706b3cc5c
Fix room member infinite loop
2023-09-19 16:10:27 +02:00
ganfra
d9113448b6
Merge pull request #1371 from vector-im/feature/fga/fix_anr
...
RoomList : fix ANR (#1370 )
2023-09-19 14:17:37 +02:00
ganfra
1004366d95
RoomList : fix ANR ( #1370 )
2023-09-19 14:01:43 +02:00
Marco Romano
52bbede960
Upgrade rust sdk to .55 ( #1365 )
...
Accomodates breaking changes.
2023-09-19 13:33:03 +02:00
David Langley
cebe099c7d
Add test.
2023-09-18 16:03:30 +01:00