Commit Graph

2626 Commits

Author SHA1 Message Date
Benoit Marty
f7694860cd Add unit test for AndroidLocalMediaActions 2023-11-30 15:41:40 +01:00
Benoit Marty
3baa782642 Add unit test for AndroidLocalMediaFactory 2023-11-30 15:07:59 +01:00
Benoit Marty
abf31768a6 Add unit test for FileExtensionExtractor 2023-11-30 14:56:01 +01:00
Benoit Marty
0acaa19a16 Add unit test for AndroidFileSizeFormatter 2023-11-30 14:36:59 +01:00
Benoit Marty
70f59826dd Let package match namespace 2023-11-30 14:05:27 +01:00
ganfra
118f1c1459 Add StartDMAction to further share code 2023-11-30 13:07:24 +01:00
Benoit Marty
802eba66fa Small refacto: use isOwn instead of isMe 2023-11-30 10:58:28 +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
955b315597 Cleanup 2023-11-29 17:27:16 +01:00
Benoit Marty
8bf5d5eee8 Disable failing tests for AndroidMediaPreProcessor 2023-11-29 17:03:27 +01:00
Benoit Marty
fcd8b86c64 Add tests for AndroidMediaPreProcessor 2023-11-29 17:03:27 +01:00
Benoit Marty
3e166e3d89 Using Exception is OK here. 2023-11-29 17:03:27 +01:00
Benoit Marty
1673fe7354 Remove useless suspend modifier 2023-11-29 17:03:27 +01:00
Benoit Marty
475bf376f9 Provide CoroutineDispatchers to ImageCompressor 2023-11-29 17:02:38 +01:00
ganfra
69d0a5c7b1 Creates a startDM method so we can reuse it for the new flow 2023-11-29 16:16:09 +01:00
renovate[bot]
8953b9cdae 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
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
ganfra
a324e18982 RoomList: introduce incremental loading to improve performances. 2023-11-29 11:53:15 +01:00
Marco Romano
c6fdc79f83 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
c69d610b6c 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
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
Jorge Martin Espinosa
4ca75a3bac 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
8ae8853c15 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
4f32299280 Use MimeTypes object instead of hard-coded strings. 2023-11-27 21:58:58 +01:00
Benoit Marty
04be1f0385 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
4e849f460b Fix: This number should be separated by underscores in order to increase readability 2023-11-27 17:17:10 +01:00
Benoit Marty
47dc03082e Add test for DefaultNotificationDrawerManager 2023-11-27 16:44:47 +01:00
Benoit Marty
0930cd0dc6 NotificationEventPersistence is now an interface, to allow in-memory implementation. 2023-11-27 16:44:47 +01:00
Benoit Marty
c3eb653261 Add test for NotificationEventPersistence 2023-11-27 16:44:47 +01:00
Benoit Marty
a8e640d1dd Add coverage for NotificationBitmapLoader 2023-11-27 16:44:47 +01:00
Benoit Marty
f1ec4b68fc Remove useless try catch. 2023-11-27 16:43:58 +01:00
Benoit Marty
0fe93ded92 Fix issue in RoomGroupMessageCreator 2023-11-27 16:43:58 +01:00
Benoit Marty
119382d03d Add test for RoomGroupMessageCreator 2023-11-27 16:43:58 +01:00
Benoit Marty
97c764cd79 Add test for NotificationCreator 2023-11-27 16:43:58 +01:00
Benoit Marty
3316f840f1 Rename NotificationFactory to NotificationCreator to fix the name clash. 2023-11-27 16:43:58 +01:00
Benoit Marty
08c62c191a Remove dead code. 2023-11-27 16:43:58 +01:00
jonnyandrew
e4604e5668 Display edited poll indicator in the timeline 2023-11-27 13:14:00 +00:00
Jorge Martin Espinosa
a8b85fb4e6 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
634d8167ea 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
ganfra
198147e813 Merge pull request #1885 from vector-im/feature/fga/room_list_all_not_left_filter
Fix see room in room list after leaving
2023-11-24 17:45:24 +01:00
Benoit Marty
951f1d516f Merge pull request #1872 from vector-im/feature/bma/removeDeadCode
Remove unused code to increase code coverage.
2023-11-24 17:18:14 +01:00
ganfra
b844862785 Fix see room in room list after leaving it #1006 2023-11-24 12:03:37 +01:00
Benoit Marty
d29219169a Merge pull request #1862 from vector-im/feature/bma/moreTests
Remove lambda default value
2023-11-24 11:00:34 +01:00
Benoit Marty
805867d9e8 More removal of dead code. 2023-11-23 22:18:28 +01:00
Benoit Marty
73a062451c Remove UnknownMessageType, should be handled by OtherMessageType now. 2023-11-23 20:18:53 +01:00
Benoit Marty
304be71122 Remove unused code to increase code coverage. 2023-11-23 17:55:50 +01:00
Benoit Marty
9420597622 Small rework code to avoid dead code. 2023-11-23 17:41:28 +01:00
Benoit Marty
fc7898ca36 Add tests for NotifiableEventResolver 2023-11-23 17:36:23 +01:00
ganfra
6e4635b4cd Merge pull request #1865 from vector-im/feature/fga/room_list_dynamic_api
RoomList : rework a bit the api and make usage of entriesWithDynamicAdapter
2023-11-23 12:07:55 +01:00
Jorge Martin Espinosa
f55d347387 Add plain text representation of messages (#1850)
* Add plain text representation of messages.

This is used in the room list as the last message in a room, in the message summary when a message is selected, in the 'replying to' block, in the 'replied to' block in a message in the timeline, and in notifications.
2023-11-23 08:29:20 +01:00