Commit Graph

244 Commits

Author SHA1 Message Date
jmartinesp
697c482b6d Sync Strings from Localazy 2024-01-31 11:38:48 +00:00
Benoit Marty
444954bad9 Merge pull request #2293 from element-hq/feature/bma/notificationCount
Iterate on notification badges
2024-01-30 10:33:17 +01:00
bmarty
2be0a69c50 Sync Strings from Localazy 2024-01-29 00:09:56 +00:00
Benoit Marty
fa7566079e Fix test compilation issue. 2024-01-25 17:22:10 +01:00
Benoit Marty
5737bd8e7a Ensure the icon stay grey if the global setting is set to mention only.
Implement the iOS logic #2282
2024-01-25 16:17:27 +01:00
Benoit Marty
01ba6aa917 Rework: improve OnGoingCallIcon API. 2024-01-25 15:29:11 +01:00
Benoit Marty
4035c1ca5b Rework: extract sub fun composable. 2024-01-25 15:06:34 +01:00
Benoit Marty
fe0e82b5d6 Map roomInfo.numUnreadNotifications to RoomSummaryDetails.numUnreadNotifications 2024-01-25 15:00:43 +01:00
Benoit Marty
51c40f2b13 Make isTimestampHighlighted a computed val. 2024-01-23 11:20:10 +01:00
Benoit Marty
ca1f907ec5 Use new Rust fields numUnreadMessages and numUnreadMentions, and iterate on the room badge rendering. 2024-01-22 15:48:46 +01:00
Benoit Marty
38515a9718 Fix detekt issue:
Use `?.let {}` instead of if/else with a null block when checking for nullable values [UseLet]
2024-01-22 14:21:49 +01:00
Benoit Marty
2acd00bcd8 Introduce RoomListRoomSummaryFactory and remove RoomListRoomSummaryPlaceholders. 2024-01-22 11:29:54 +01:00
Benoit Marty
5bcef21154 Remove default value for constructor of RoomListRoomSummary. 2024-01-22 11:11:44 +01:00
Benoit Marty
3ec86f9b5f Ensure there is no timestamp in RoomListRoomSummary if lastMessage is null. 2024-01-22 11:05:25 +01:00
Benoit Marty
e72b5c4614 Ensure roomId are unique in the list. 2024-01-22 11:02:45 +01:00
Benoit Marty
9a9beeb532 Use aRoomListRoomSummary function instead of invoking the constructor. 2024-01-22 11:02:13 +01:00
Benoit Marty
0334da7a14 fun aRoomListRoomSummary: make internal, add all fields and reorder to match RoomListRoomSummary constructor order. 2024-01-22 10:59:42 +01:00
Benoit Marty
ca5850e0e5 Do not use the function for preview in test. 2024-01-22 10:49:19 +01:00
Benoit Marty
846fd0106e Preview with a last message by default. 2024-01-19 17:59:18 +01:00
Benoit Marty
ccec00515d Improve aRoomListRoomSummary method. 2024-01-19 16:51:05 +01:00
Benoit Marty
82a3750cd8 Remove notificationMode to userDefinedNotificationMode to match SDK name. 2024-01-19 16:46:42 +01:00
Benoit Marty
9b3a0c1f08 Remove hasOngoingCall to hasRoomCall to match SDK name. 2024-01-19 16:16:57 +01:00
Benoit Marty
0e57fbf352 Rename userAvatarURLString to userAvatarUrl 2024-01-19 15:59:50 +01:00
Benoit Marty
603b10264b Rename avatarURLString to avatarUrl 2024-01-19 15:58:37 +01:00
Jorge Martin Espinosa
64a18afc1b Replace 'leave room' text with 'leave conversation' for DMs (#2231)
* Replace 'leave room' text with 'leave conversation' for DMs

* Add `isDm` property to both `RoomSummary` and `RoomListRoomSummary`

* Remove redundant `leave_conversation_alert_subtitle_*` texts

* Fix maestro flow

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-01-16 15:49:44 +01:00
ElementBot
3a37460814 Sync Strings (#2230)
Co-authored-by: bmarty <bmarty@users.noreply.github.com>
2024-01-15 09:21:04 +01:00
Benoit Marty
378692f743 Fix moar ktlint issues 2024-01-11 10:02:10 +01:00
Benoit Marty
d3830af78b Fix ktlint issues 2024-01-10 19:33:39 +01:00
renovate[bot]
7e9cda3aa9 Update plugin ktlint to v12.1.0 (#2200)
* Update plugin ktlint to v12.1.0

* Run `./gradlew ktlintFormat` and fix some issues manually.

* Fix other issues reproted by Ktlint

* Limit false positives, KtLint removes unnecessary curly brace in String templates.

* Remove useless Unit

* Minor improvements over ktlint changes

* Restore `AlertDialogContent` behaviour

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-01-10 16:22:24 +01:00
Benoit Marty
d9fb5ce007 Remove now useless ExperimentalLayoutApi opt in 2023-12-28 12:41:02 +01:00
bmarty
ada357b344 Sync Strings from Localazy 2023-12-26 09:39:48 +01:00
Jorge Martin Espinosa
ada16a8563 Revert "Room list badges" 2023-12-22 11:02:07 +01:00
Benoit Marty
a66ce1a3ea Fix test. 2023-12-21 16:11:03 +01:00
Benoit Marty
709e68f099 Handle PR review. 2023-12-21 16:05:51 +01:00
Benoit Marty
a83cafd6b7 We can have numUnreadMentions > 0 and numUnreadMessages == 0, in this case, display both icons. 2023-12-21 15:39:52 +01:00
Benoit Marty
e6ad262329 Iterate on indicators on room list #2079 2023-12-21 14:51:31 +01:00
Benoit Marty
39298a22f3 Use VideoCallSolid and also delete local ic_video_call.xml icon. 2023-12-20 17:33:49 +01:00
Benoit Marty
ba04bbc5ca Merge pull request #2077 from element-hq/feature/bma/timestamp
Feature/bma/timestamp
2023-12-20 15:17:43 +01:00
Jorge Martin Espinosa
96ebe1a11c Font size on 'All Chats' was changing mid animation (#2073)
* Font size on 'All Chats' was changing mid animation
2023-12-20 13:52:19 +00:00
Benoit Marty
b51b0c3994 Fix timestamp font #2065 2023-12-20 11:42:29 +01:00
Benoit Marty
0c99a457e4 Add RoomListConfig to be able to hide menu items. And hide them #2062. 2023-12-19 15:10:22 +01:00
Benoit Marty
d6ada81bcd Merge pull request #2040 from element-hq/feature/bma/fixLinkify
fix linkify
2023-12-18 14:51:14 +01:00
bmarty
96dd875f3d Sync Strings from Localazy 2023-12-18 00:10:14 +00:00
Benoit Marty
f14ed0db68 Attempt to fix test on CI... 2023-12-17 11:25:28 +01:00
Benoit Marty
d31909e049 Sync localazy using fixed script 2023-12-08 19:24:35 +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
0375017d69 Sync again 2023-12-05 11:25:47 +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