Commit Graph

1399 Commits

Author SHA1 Message Date
ganfra
3971ee333d Pinned events : clean up more banner code 2024-07-31 15:51:19 +02:00
ganfra
88c07511d8 Pinned events : clean up banner code and add small test. 2024-07-31 13:44:46 +02:00
ganfra
a8115e0a21 Merge branch 'develop' into feature/fga/pinned_message_banner_ui 2024-07-31 13:11:51 +02:00
renovate[bot]
69ad8144a2 Update dependency io.nlopez.compose.rules:detekt to v0.4.8 (#3254)
* Update dependency io.nlopez.compose.rules:detekt to v0.4.8

* Fix new lint issues

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-07-31 11:08:11 +02:00
ganfra
c2f62c6b98 Pinned events : add more tests on pin/unpin 2024-07-30 20:55:11 +02:00
ganfra
4da18935cd Merge branch 'develop' into feature/fga/pinned_event_feature_flag 2024-07-30 20:44:51 +02:00
ganfra
a4f14c29cf Pinned events : add more tests on pin/unpin 2024-07-30 19:13:35 +02:00
ganfra
81c14926d8 Pinned event : log and show snackbar on error 2024-07-30 19:12:29 +02:00
ganfra
3bc6cc0a94 Pinned events : clean up code 2024-07-30 16:40:18 +02:00
ganfra
a289f93079 Pinned event : add some tests 2024-07-30 16:38:11 +02:00
ganfra
ed3593f35a Pinned events: branch pin/unpin according to current state 2024-07-30 13:32:10 +02:00
ganfra
56b8b377e4 Pinned events: add unpin action 2024-07-30 11:52:45 +02:00
ganfra
4b8b8d1af9 Pinned event : branch pinEvent action 2024-07-29 13:43:57 +02:00
ganfra
6ad547833f Refactor userEventPermissions 2024-07-29 13:43:47 +02:00
bmarty
d288ace4bd Sync Strings from Localazy 2024-07-29 00:26:27 +00:00
ganfra
233a1ff09e Pinned event: add action on timeline 2024-07-26 18:20:17 +02:00
ganfra
3adc6d0be8 Timeline Action : refactor how it's computed and align with iOS 2024-07-26 18:20:03 +02:00
ganfra
2d02c01d5f Pinned event : hide/show banner on timeline scroll 2024-07-25 18:37:46 +02:00
ganfra
4d5aad7899 Merge remote-tracking branch 'origin/develop' into feature/fga/pinned_message_banner_ui 2024-07-25 17:59:04 +02:00
ganfra
f5d215ba0f Edit : fallback to room.edit when timeline item is not found. 2024-07-24 11:49:16 +02:00
ganfra
df09d82a58 Pinned messages : introduces banner view 2024-07-23 13:05:59 +02:00
Jorge Martin Espinosa
1b016946ea Fix linkification not working for Spanned strings in text messages (#3233)
* Fix linkification not working for `Spanned` string instead of `Spannable`.

This issue was found as a regression after upgrading the RTE version to `2.37.7`.

* Fix and add tests
2024-07-22 09:09:20 +00:00
ElementBot
9522569860 Sync Strings (#3232)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-07-22 08:59:47 +00:00
Benoit Marty
94f38f1af5 Rework FakeMatrixRoom so that it contains only lambdas. (#3229)
* Upgrade lint to 8.7.0-alpha01

* FakeMatrixRoom: lambda everywhere

Fix test compilation issues
2024-07-22 10:39:48 +02:00
ganfra
6ee15e4b6a Compose : add immutability to some Reaction classes 2024-07-19 17:13:49 +02:00
Jorge Martin Espinosa
a6b6d2ab7a Fix pillification not working for non formatted message bodies (#3201)
* Fix pillification not working for non formatted message bodies

Pure Markdown bodies weren't being 'pillified' so their mentions were turned into UI elements in the timeline.

A new `pillifiedBody` property was added to `TimelineItemTextBasedContent` to fix this.

* Use shorter version of `textWithMentions` computation
2024-07-17 08:20:47 +00:00
Jorge Martin Espinosa
89ec904c4a Restore intentional mentions in the markdown/plain text editor (#3193)
* Restore intentional mentions in the markdown/plain text editor

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-15 18:27:59 +02:00
Jorge Martin Espinosa
bb47ff8f49 Unify the way we decide whether a room is a DM or a group room (#3100)
* Add centralised 'room is DM' check

Also add extension functions for `MatrixRoom` and `MatrixRoomInfo`.

* Use the centralised method and extension functions through the app, including:

- Room list.
- Room details screen.
- Invites.
- Notifications.

Replace most `isDirect` usages with `isDm`.

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-10 16:28:46 +00:00
Benoit Marty
39ca870d45 Merge pull request #3146 from element-hq/feature/bma/invokeAllCallbacks
Ensure that all callback plugins are invoked.
2024-07-09 16:17:02 +02:00
renovate[bot]
8aa4fbdade Update dependency org.matrix.rustcomponents:sdk-android to v0.2.31 (#3145)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.2.31

* Use new Rust client side sorting API

* Make `RoomListEntriesUpdate.describe()` an extension function

* Remove `RoomListSummary.Filled` and `RoomListSummary.Empty`

* Fix icon sizes to pass the lint checks

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-05 15:25:42 +00:00
Benoit Marty
27e4b5d82f Ensure that all the callback instances are invoked. 2024-07-05 12:13:21 +02:00
Benoit Marty
ea62ed7c5a Improve click behavior on room timeline title. #3063 2024-07-04 09:26:39 +02:00
ganfra
d0eecd01b3 Merge pull request #3132 from element-hq/feature/fga/draft_in_memory_when_editing
Draft : add volatile storage when moving to edit mode.
2024-07-03 15:38:00 +02:00
ganfra
4918ec25b5 Draft : improve DefaultComposerDraftService code. 2024-07-03 15:04:38 +02:00
ganfra
f3bacc3c85 Draft : add some doc on ComposerDraftStores 2024-07-03 15:04:05 +02:00
jmartinesp
58f2cbf489 Sync Strings from Localazy 2024-07-03 11:21:27 +00:00
Jorge Martin Espinosa
950e502ca6 Improve screenshot testing with ComposablePreviewScanner (#3125)
* Use ComposablePreviewScanner to rework how screenshot testing works
* Add test sharding
* Update screenshots
* Fixes for Element Gallery

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-07-03 13:05:06 +02:00
ganfra
9a15a1ae71 Draft : use the volatile draft store when moving to edit mode 2024-07-03 12:03:51 +02:00
Jorge Martin Espinosa
e9e7d4d0c4 FFs can now be toggled in release builds too (#3101)
- Removed `StaticFeatureFlagProvider`.
- Always provide `PreferencesFeatureFlagProvider`.
- For the default values of feature flags, use a lambda with a `BuildMeta` parameter so we can customize the return value based on its data.
2024-07-02 16:06:42 +00:00
ganfra
157f933e59 Draft : introduce VolatileComposerDraftStore 2024-07-02 18:01:09 +02:00
ganfra
cf684bf43a Timeline : fix text item not refreshed when content change 2024-07-02 10:29:09 +02:00
ganfra
113e8ecffa Draft : also clear draft when composer is blank 2024-07-01 12:23:42 +02:00
bmarty
99ae2b9640 Sync Strings from Localazy 2024-07-01 00:22:10 +00:00
Jorge Martin Espinosa
a95d610464 Fix @room mentions crashing in debug builds (#3107)
* Fix `@room` mentions crashing in debug builds

* Iterate on previous solution, add `MentionSpan.Type.EVERYONE`
2024-06-27 15:31:19 +00:00
Jorge Martin Espinosa
cdbb46fa22 Bump Rust SDK version and adapt our code (#3068)
* Use the new SDK version
* Adapt the authentication service to the new Rust SDK APIs
* Remove `Timeline.enterSpecialMode(...)` as it's no longer necessary
2024-06-27 09:44:14 +00:00
ganfra
a77e5edef4 Merge branch 'develop' into feature/fga/draft_support 2024-06-26 15:22:00 +02:00
ganfra
cb6074fb2a Draft : code cleanup 2024-06-26 12:15:00 +02:00
ganfra
32f2b7534b Draft : add unit tests for draft support 2024-06-26 12:14:43 +02:00
ganfra
ece740322c Draft : makes sure all existing tests passes 2024-06-25 15:17:18 +02:00
ganfra
dfae2e50c9 Draft : refactor a bit ComposerMode and formatting management so we don't mess up with draft restoration. 2024-06-25 11:35:22 +02:00