Commit Graph

822 Commits

Author SHA1 Message Date
Jorge Martin Espinosa
6b45383917 Fix scaling of timeline images (#1941)
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: Benoit Marty <benoitm@matrix.org>
2023-12-15 13:26:20 +01:00
Benoit Marty
8438b6937d Scroll to bottom if the new event is from me, even if sent from another device #1877.
This fixes the issue that the timeline does not scroll when sending an attachment to the room, since there is no local echo (yet) for such event.
2023-12-15 09:17:34 +01:00
ganfra
25c003adaf MessagesPresenter : remove useless test 2023-12-14 19:00:32 +01:00
ganfra
fd5bdce2d9 Fix androidTest compilation 2023-12-14 18:33:59 +01:00
Benoit Marty
87dfb9785c Remove duplicated preview, but add editable case (isMine must be true) 2023-12-14 16:58:42 +01:00
Benoit Marty
6bf416045d Merge branch 'develop' into julioromano/poll_history_entry_point 2023-12-14 16:58:23 +01:00
Benoit Marty
506f47630b Merge pull request #2015 from element-hq/feature/bma/asyncMedia
ReadReceipt
2023-12-14 16:03:09 +01:00
Benoit Marty
94858cffb6 Cleanup: Inline val for code clarity / compact. 2023-12-14 15:25:45 +01:00
ganfra
3ceb2599d8 Merge branch 'develop' into julioromano/poll_history_entry_point 2023-12-14 15:17:13 +01:00
ganfra
5d91697be0 Fix tests and warnings 2023-12-14 13:13:11 +01:00
Jorge Martin Espinosa
3b59b70e65 Handle tapping on user mentions (#2021) 2023-12-14 11:56:59 +00:00
ganfra
b94f446fc1 Merge pull request #1897 from element-hq/jonny/timeline-poll-edited
Display edited indicator for polls in the timeline
2023-12-14 08:13:11 +01:00
Jorge Martin Espinosa
ab58cc2ed5 Use RTE TextView for timeline text messages, add mention pills to messages (#1990)
* Add `formattedBody` to `TimelineItemTextBasedContent`.

This is pre-computed when timeline events are being mapped from the Rust SDK.

* Update `HtmlConverterProvider` styles.

* Improve `MentionSpan` to add missing `@` or `#` if needed

* Replace `HtmlDocument` with the `TextView` based component

* Improve extra padding calculation for timestamp by rounding the float offset result instead of truncating it.

* Remove composer line height workaround

* Use `ElementRichTextEditorStyle` instead of `RichTextEditorDefaults` for the theming

* Use slightly different styles for composer and messages (top/bottom line height discrepancies, mostly).

* Add `formattedBody` to notice and emote events.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-12-13 18:09:53 +01:00
Benoit Marty
68334ba093 Fix API break regarding ReceiptType 2023-12-13 18:02:06 +01:00
ganfra
72cdc0eee0 Merge branch 'develop' into julioromano/poll_history_entry_point 2023-12-13 17:22:55 +01:00
ganfra
055eb43708 Poll history : add tests and fix others 2023-12-13 16:20:01 +01:00
Benoit Marty
9250ed4ef7 Merge pull request #1992 from vector-im/feature/bma/notificationUserAvatar
Render images in notification
2023-12-11 17:35:05 +01:00
Benoit Marty
823152f1af Merge pull request #1981 from vector-im/feature/bma/noAvatarInDM
Hide sender info in direct rooms, and add a timeline preview for DM
2023-12-11 14:59:52 +01:00
Benoit Marty
c5168ae27b Extract MxcTools and add test. 2023-12-11 14:53:02 +01:00
Benoit Marty
d31909e049 Sync localazy using fixed script 2023-12-08 19:24:35 +01:00
Benoit Marty
ed65933e80 Hide sender info in direct rooms, and add a timeline preview for DM (#1979) 2023-12-08 12:05:25 +01:00
Benoit Marty
17bee2ee95 Ensure user display name is clipped to the Text area (#1950) 2023-12-05 17:20:58 +01:00
ganfra
67ec58a4f4 Polls: share logic around PollContent 2023-12-05 14:06:59 +01:00
Benoit Marty
ef5927d0bc Merge pull request #1952 from vector-im/sync-localazy
Sync Strings
2023-12-05 13:47:44 +01:00
Benoit Marty
b43ddd36b9 Run the script again. 2023-12-05 12:25:59 +01:00
Benoit Marty
09e812cd8d Sync string again after removing problematic translations from Localazy. 2023-12-04 18:03:21 +01:00
Benoit Marty
e2c013e35b Fix compilation issue after merge from GH... 2023-12-04 17:34:55 +01:00
Benoit Marty
002fd0be66 Merge branch 'develop' into jonny/timeline-poll-edited 2023-12-04 16:01:09 +01:00
Benoit Marty
a77ad88001 Add Konsist test to use isNull() instead of isEqualTo(null), and fix existing issue. 2023-12-04 15:30:57 +01:00
Benoit Marty
7c58a843dc Add Konsist test to use isTrue() instead of isEqualTo(true), and fix existing issues. 2023-12-04 15:23:36 +01:00
Benoit Marty
65924eac6b Add Konsist test to use isFalse() instead of isEqualTo(false), and fix existing issues. 2023-12-04 15:21:50 +01:00
Benoit Marty
45883975c4 Add Konsist test to check that assertThat is imported, and fix existing issues. 2023-12-04 15:18:01 +01:00
bmarty
ad2ca01094 Sync Strings from Localazy 2023-12-04 00:09:56 +00:00
Benoit Marty
df897e4fb8 Merge pull request #1925 from vector-im/feature/bma/testAndroidMediaPreProcessor
Feature/bma/test android media pre processor
2023-12-01 13:53:55 +01:00
Benoit Marty
9862f7a770 Merge pull request #1934 from vector-im/feature/bma/timelineFixes
Timeline fixes
2023-12-01 09:37:41 +01:00
Benoit Marty
b6c8ef2aa3 Fix compilation warning 2023-11-30 13:55:55 +01:00
Benoit Marty
05ca140a3a Read Receipt Row should not swipe when user swipe to reply to a message. 2023-11-30 11:08:45 +01:00
Benoit Marty
17c8787e17 Expand group when clicking on grouped read receipt. 2023-11-30 11:00:17 +01:00
Jorge Martin Espinosa
0a91184e4a Set a default power level to join calls in room (#1927)
* Set a default power level to join calls.

Also, create new rooms taking this power level into account.

* Modify test to make sure we display the disabled state even when there is an ongoing call

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-11-30 09:47:48 +00:00
Benoit Marty
c26b24235f Fix chevron orientation according to design and animate the change. 2023-11-30 10:07:33 +01:00
Benoit Marty
6f1bf9b666 Log errors 2023-11-29 17:02:38 +01:00
Jorge Martin Espinosa
c739ebc0ee Try to make all collections used in Compose code immutable (#1922)
* Try to make all collections used in Compose code immutable.

Mark sealed interfaces as `@Immutable` too

* Add gradle code to check the compose compiler reports

* Fix some more unstable classes
2023-11-29 15:02:08 +00:00
Jorge Martin Espinosa
c697baf585 Use the right avatar for DMs in DM rooms (#1917) 2023-11-29 13:06:48 +01:00
Jorge Martin Espinosa
bbc4d18a9d Open room member avatar in a media viewer (#1911)
* Open room member avatar in viewer.

The `MediaViewer` was extracted to its own library module.

* Update screenshots

* Restore KSP processor in `:libraries:mediaviewer:api`, this should generate Showkase components again.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-11-28 17:39:41 +00:00
Benoit Marty
d0cc8c0b2f Merge pull request #1910 from vector-im/feature/bma/fixRRscroll
Fix issues around read receipt
2023-11-28 17:45:38 +01:00
Benoit Marty
eed4278ffe Move TimelineItemRow to its own file. 2023-11-28 15:21:02 +01:00
Benoit Marty
d5a1a43900 Fix code quality. 2023-11-28 15:12:40 +01:00
Benoit Marty
16f5705dff Compute aggregatedReadReceipts in a background worker. 2023-11-28 15:10:42 +01:00
Benoit Marty
60332bf64a Reduce bottom padding for state event 2023-11-28 15:00:38 +01:00
Benoit Marty
76232746e1 Add read receipt on StateEvents 2023-11-28 14:46:15 +01:00