Commit Graph

1887 Commits

Author SHA1 Message Date
Benoit Marty ef2de28ac6 Merge pull request #1942 from vector-im/renovate/org.matrix.rustcomponents-sdk-android-0.x
Update dependency org.matrix.rustcomponents:sdk-android to v0.1.73
2023-12-01 17:49:20 +01:00
Benoit Marty 5ae5f994eb Fix compilation issue 2023-12-01 15:29:45 +01:00
Benoit Marty b7361f2b48 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
ganfra 15d86c2981 Merge pull request #1938 from vector-im/feature/fga/user_detail_direct_chat
Feature/fga/user detail direct chat
2023-12-01 13:46:01 +01:00
ganfra 785a27151e StartDMAction : small improvements after review 2023-12-01 11:28:29 +01:00
Benoit Marty 95b922c272 Remove unused import. 2023-12-01 09:39:33 +01:00
Benoit Marty 33e8080d63 Merge pull request #1936 from vector-im/feature/bma/testAndroidLocalMediaActions
Test android local media actions and other classes
2023-12-01 09:38:40 +01:00
Benoit Marty fa3422f858 Merge pull request #1934 from vector-im/feature/bma/timelineFixes
Timeline fixes
2023-12-01 09:37:41 +01:00
ganfra 6cf2099b03 Merge pull request #1920 from vector-im/feature/fga/dynamic_room_list_incremental_load
RoomList: introduce incremental loading to improve performances.
2023-11-30 19:51:13 +01:00
ganfra 1921b4f18f Merge branch 'develop' into feature/fga/user_detail_direct_chat 2023-11-30 18:10:51 +01:00
ganfra 3efbf4747d StartDM : add tests 2023-11-30 18:05:26 +01:00
Benoit Marty cc5c9b4136 Fix test compilation and fixture. 2023-11-30 16:07:20 +01:00
Benoit Marty b7a6d8996a Add unit test for AndroidLocalMediaActions 2023-11-30 15:41:40 +01:00
Benoit Marty 0dcb9202d3 Add unit test for AndroidLocalMediaFactory 2023-11-30 15:07:59 +01:00
Benoit Marty c3908e7a6c Add unit test for FileExtensionExtractor 2023-11-30 14:56:01 +01:00
Benoit Marty 0f599ab970 Add unit test for AndroidFileSizeFormatter 2023-11-30 14:36:59 +01:00
Benoit Marty 3e2ff5113d Let package match namespace 2023-11-30 14:05:27 +01:00
ganfra e8eb9c0840 Add StartDMAction to further share code 2023-11-30 13:07:24 +01:00
Benoit Marty 4c016a9f3d Small refacto: use isOwn instead of isMe 2023-11-30 10:58:28 +01:00
Jorge Martin Espinosa 2e8d5ac86a 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 cf8abae20c Cleanup 2023-11-29 17:27:16 +01:00
Benoit Marty 62833c8bec Disable failing tests for AndroidMediaPreProcessor 2023-11-29 17:03:27 +01:00
Benoit Marty 7e8794bc6e Add tests for AndroidMediaPreProcessor 2023-11-29 17:03:27 +01:00
Benoit Marty 655d8305a1 Using Exception is OK here. 2023-11-29 17:03:27 +01:00
Benoit Marty a7d78cae78 Remove useless suspend modifier 2023-11-29 17:03:27 +01:00
Benoit Marty 048ab7c603 Provide CoroutineDispatchers to ImageCompressor 2023-11-29 17:02:38 +01:00
ganfra ab2dc827f0 Creates a startDM method so we can reuse it for the new flow 2023-11-29 16:16:09 +01:00
renovate[bot] 59f8641973 Update wysiwyg to v2.20.0 (#1921)
* Update wysiwyg to v2.20.0

* Workaround line height for composer, remove unused test code.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-11-29 16:04:40 +01:00
Jorge Martin Espinosa ba4d3a70c7 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
ganfra fda114d648 RoomList: introduce incremental loading to improve performances. 2023-11-29 11:53:15 +01:00
Marco Romano 6ea26dd6c4 Upgrade to rust sdk 0.1.71 (#1905)
https://github.com/matrix-org/matrix-rust-components-kotlin/releases/tag/sdk-v0.1.71

There are breaking changes as specified in: https://github.com/vector-im/element-x-android/issues/1898 plus the one related to the poll history feature.
2023-11-29 10:34:51 +01:00
Marco Romano f186a85ed0 Rename params in NodeFactories for clarity (#1916)
- `context` is now `buildContext` to reflect that it's of type `BuildContext` (and not an android `Context`).
- `NODE` generic type param is now `N` to stick with Java convention: https://docs.oracle.com/javase/tutorial/java/generics/types.html.
2023-11-29 10:01:07 +01:00
Jorge Martin Espinosa ab8402a4dc 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
Jorge Martin Espinosa 4de256b69c Add special notifications for mentions (#1846)
* Add special notifications for mentions

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-11-28 10:41:50 +01:00
ElementBot 12b3196471 Sync Strings (#1892)
* Sync Strings from Localazy

---------

Co-authored-by: bmarty <bmarty@users.noreply.github.com>
Co-authored-by: jonnyandrew <jonnya@element.io>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-11-28 09:52:23 +01:00
Benoit Marty 1df3817808 Use MimeTypes object instead of hard-coded strings. 2023-11-27 21:58:58 +01:00
Benoit Marty 9059126b2e Use kotlin.time.Duration instead of java.time.Duration. Also use Duration in TimelineItemVideoContent, like in TimelineItemAudioContent and TimelineItemVoiceContent 2023-11-27 21:58:58 +01:00
Benoit Marty 9afba239bb Fix: This number should be separated by underscores in order to increase readability 2023-11-27 17:17:10 +01:00
Benoit Marty a02c5c2b44 Add test for DefaultNotificationDrawerManager 2023-11-27 16:44:47 +01:00
Benoit Marty b61b45dd0c NotificationEventPersistence is now an interface, to allow in-memory implementation. 2023-11-27 16:44:47 +01:00
Benoit Marty a09fa1c5ad Add test for NotificationEventPersistence 2023-11-27 16:44:47 +01:00
Benoit Marty 73ebffab2e Add coverage for NotificationBitmapLoader 2023-11-27 16:44:47 +01:00
Benoit Marty 7cb6740dd6 Remove useless try catch. 2023-11-27 16:43:58 +01:00
Benoit Marty abf1de7f42 Fix issue in RoomGroupMessageCreator 2023-11-27 16:43:58 +01:00
Benoit Marty 435827af28 Add test for RoomGroupMessageCreator 2023-11-27 16:43:58 +01:00
Benoit Marty 5a979e6237 Add test for NotificationCreator 2023-11-27 16:43:58 +01:00
Benoit Marty 1fdf8dad1f Rename NotificationFactory to NotificationCreator to fix the name clash. 2023-11-27 16:43:58 +01:00
Benoit Marty 3b6c92943c Remove dead code. 2023-11-27 16:43:58 +01:00
Jorge Martin Espinosa 087d2728d5 Extract compound tokens and theming to compound-android library (#1888)
* Replace tokens & icons with the external Compound ones

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-11-27 10:30:07 +01:00
jonnyandrew 8fcec4a006 Allow polls to be edited (#1869)
Polls can be edited if they do not have any votes

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-11-24 16:47:58 +00:00