Commit Graph

36 Commits

Author SHA1 Message Date
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 7389748f3e Konsist: add rule obout test class name, and fix existing issue 2023-10-12 15:03:50 +02:00
Benoit Marty 71b836a4c6 Fix test, and distinguish failure message. 2023-10-11 16:55:48 +02:00
Benoit Marty bcefbb9861 Render body for m.room.message if msgtype is unknown, in timeline and as room list last message. #1539 2023-10-11 16:18:24 +02:00
Benoit Marty 8c2a5f281b MessageContent.type cannot be null 2023-10-11 16:14:15 +02:00
Benoit Marty 303b174009 Emotes starts with * 2023-10-05 10:47:00 +02:00
Marco Romano e4c78a2489 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
jonnyandrew ee8d27e927 [Rich text editor] Add link functionality to rich text editor (#1309)
* Add link functionality to rich text editor
* Add 'list dialog' component compound design library
* Add 'text field list item' component to compound design library
2023-09-19 11:20:07 +00:00
Benoit Marty 0453ea5904 Localazy sync 2023-09-18 16:42:35 +02:00
bmarty d2f9b02bbf Sync Strings from Localazy 2023-09-18 00:09:19 +00:00
ganfra cc33e39dc6 Merge branch 'develop' into feature/fga/timeline_thread_decoration 2023-09-14 16:57:20 +02:00
ganfra b382993cbb Sync Strings from Localazy 2023-09-14 14:38:49 +00:00
ganfra 27ecec763b Thread decoration : fix test compilation 2023-09-13 14:13:51 +02:00
Florian Renaud 246e9c50e6 Do not handle poll end event 2023-08-22 10:55:18 +02:00
Florian Renaud 8a62abe93e "View only" polls in the timeline (#1031)
* Handle poll events from the sdk

* Render started poll event in the timeline

* Create poll module

* Check poll kind before revealing the results

* Check if user has voted before revealing the results

* Add active poll previews

* Minor cleanup

* Update todos

* Fix CI

* Remove hardcoded string

* Update preview

* changelog file

* Update screenshots

* Use CommonPlurals

* Set poll root view as selectableGroup

* Improve poll result rendering

* Update screenshots

* Add missing showkase processor

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-16 14:19:12 +00:00
ElementBot 38a25dc3e9 Sync Strings from Localazy (#1032)
Co-authored-by: Florian14 <Florian14@users.noreply.github.com>
2023-08-11 14:34:05 +00:00
Benoit Marty c8912060fb Fix another warning. 2023-07-12 14:16:10 +02:00
Chris Smith 303a0a6677 Introduce MatrixClient.isMe for checking sessionID 2023-07-07 12:03:43 +01:00
Chris Smith 83338131fd Show descriptions for locations.
Descriptions show in the same message bubble above the map in
the timeline, and in a bar at the top of the expanded map view.
2023-07-05 15:18:36 +01:00
bmarty 6e54ed7b77 Sync Strings from Localazy 2023-07-03 00:11:17 +00:00
Chris Smith 1e17d2943f Show location events in timeline
Not in scope: interacting with the timeline items,
reply formatting. These will be implemented separately.

Closes #689
2023-06-29 16:37:15 +01:00
Benoit Marty dfa1adb9c1 More cleanup 2023-06-27 09:51:33 +02:00
Benoit Marty 798da50454 Use CommonStrings everywhere 2023-06-27 09:45:00 +02:00
bmarty 874739ece9 Sync Strings from Localazy 2023-06-26 00:10:53 +00:00
github-actions[bot] fe5524bae4 Sync Strings (#630)
* Sync Strings from Localazy

* Update strings, remove broken German translation

* Update screenshots

---------

Co-authored-by: bmarty <bmarty@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-19 11:18:01 +00:00
Benoit Marty 445df09411 Always use import io.element.android.libraries.ui.strings.R as StringR 2023-06-09 18:19:00 +02:00
github-actions[bot] 044a3c991e Sync Strings (#522)
Sync Strings from Localazy
2023-06-05 15:26:50 +00:00
Benoit Marty 7f2b23507c Merge pull request #471 from vector-im/sync-localazy
Sync Strings
2023-05-30 13:06:51 +02:00
bmarty 175b7deccb Sync Strings from Localazy 2023-05-29 00:09:47 +00:00
ganfra 2c0771ecc0 Merge branch 'develop' into feature/fga/image_loading 2023-05-26 11:39:34 +02:00
Benoit Marty 9efb703854 Fix test compilation 2023-05-25 14:17:09 +02:00
Benoit Marty 66baf1632e Extract to sub classes 2023-05-25 14:16:23 +02:00
Benoit Marty b7278f3e3e Process state event in timeline - WIP 2023-05-25 14:16:23 +02:00
Benoit Marty a5fc4ffe84 Rename processMessageItem to simple format 2023-05-25 14:16:23 +02:00
Benoit Marty abf7089cea Inject StringProvider instead of context. 2023-05-25 14:16:23 +02:00
Benoit Marty 9d66af834d Move RoomLastMessageFormatter and related class and resource to the new module eventformatter, in order to prepare rendering of state event in the timeline. 2023-05-25 14:15:35 +02:00