Commit Graph

68 Commits

Author SHA1 Message Date
Jorge Martin Espinosa
58a3ea8b1f Add catchingExceptions method to replace runCatching (#4797)
- Add `runCatchingExceptions` and `mapCatchingExceptions` to replace `runCatching` and `mapCatching`.
- Make `tryOrNull { ... }` catch only exceptions too.
- Apply the changes to the whole project.
- Add new Rust fakes for tests to handle the code that's now unblocked - previously it just threw an `UnsatisfiedLinkError` which we ignored.
- Add a new `detekt-rules` project with a `RunCatchingRule` to prevent `runCatching` and `mapCatching` usages.
2025-06-04 09:02:26 +02:00
ElementBot
5a8919b6e3 Sync Strings from Localazy (#4804)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-06-02 12:05:08 +02:00
ElementBot
498cf15d38 Sync Strings (#4775) 2025-05-30 08:47:39 +00:00
ElementBot
90f89b9088 Sync Strings (#4739)
* Sync Strings from Localazy

* Sync strings again

---------

Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2025-05-19 08:17:02 +00:00
ElementBot
aab5104010 Sync Strings from Localazy (#4677)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-05-05 12:11:22 +02:00
ElementBot
76c59e2eac Sync Strings from Localazy (#4648)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-04-28 10:59:35 +02:00
Jorge Martin Espinosa
c537e94146 Split MatrixRoom into BaseRoom and JoinedRoom (#4561)
`JoinedRoom` will now contain both a mandatory live timeline reference and all the functionality associated to it.

`BaseRoom` on the other hand will contain only functionality that's shared for both joined and not joined rooms.

`NotJoinedRoom` is a wrapper around `RoomPreviewInfo` data and a possible local `BaseRoom`, if it exists.

The `RustRoomFactory` cache is now gone since the persistent event cache should have the same effect.
2025-04-23 15:53:40 +02:00
ElementBot
491eda9ba5 Sync Strings from Localazy (#4612)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-04-22 08:57:00 +02:00
ElementBot
270b420575 Sync Strings (#4590)
* Sync Strings from Localazy

* Fix strings usage after some were moved

* Fix Norwegian string that was causing lint to fail

* Update screenshots

---------

Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2025-04-14 11:24:28 +02:00
ElementBot
2c62c44c11 Sync Strings from Localazy (#4506)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-03-31 10:58:46 +02:00
bmarty
9456ee921d Sync Strings from Localazy 2025-03-10 00:28:38 +00:00
ElementBot
9733e79b60 Sync Strings from Localazy (#4298)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-02-24 09:14:29 +01:00
Benoit Marty
83ede0f774 Sync strings again.
Revert wrong change on Hungarian plurals.
2025-02-17 11:29:49 +01:00
bmarty
3dddd90d97 Sync Strings from Localazy 2025-02-17 00:30:17 +00:00
Benoit Marty
0d6d74512f Use ElementTheme instead of MaterialTheme 2025-02-06 15:10:15 +01:00
bmarty
5a4cac7d2d Sync Strings from Localazy 2025-02-03 00:29:01 +00:00
bmarty
d419f2fdff Sync Strings from Localazy 2025-01-27 00:25:38 +00:00
Benoit Marty
f7a4c999f7 Replace our firstIfSingle extension with singleOrNull from the Kotlin library. 2025-01-22 15:49:41 +01:00
bmarty
841c08cbf3 Sync Strings from Localazy 2025-01-20 00:26:57 +00:00
Benoit Marty
05fc76822a Apply dual licenses: AGPL + Element Commercial to file headers.
2 replace all actions have been performed:
- "SPDX-License-Identifier: AGPL-3.0-only" to "SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial"
- "Please see LICENSE in the repository root for full details." to "Please see LICENSE files in the repository root for full details."
2025-01-07 10:05:04 +01:00
Benoit Marty
52648d2abf Fix quality checks 2025-01-02 08:16:06 +01:00
Benoit Marty
e76519c525 Add overlapRatio parameter 2025-01-02 07:04:35 +01:00
Benoit Marty
6650a959e7 Fix issue when rendering in RTL. 2025-01-02 07:04:34 +01:00
Benoit Marty
eadf9e3db7 Add preview on AvatarRow 2025-01-02 07:04:33 +01:00
Benoit Marty
f863bbc43f Extract AvatarRow to its own file 2025-01-02 07:04:31 +01:00
bmarty
1cadb353dd Sync Strings from Localazy 2024-12-30 10:12:13 +00:00
bmarty
7a57ec1cc1 Sync Strings from Localazy 2024-12-23 00:16:39 +00:00
ganfra
5e2fed1ecd knock requests : rename KnockRequestsActionTarget to KnockRequestAction 2024-12-19 20:08:14 +01:00
ganfra
87ce71a883 knock requests : rename fixture aKnockRequestPresentable 2024-12-19 19:34:11 +01:00
ganfra
c095457212 knock requests : add KnockRequestsException 2024-12-19 19:31:53 +01:00
ganfra
be41e224e8 knock requests : fix test name 2024-12-18 20:36:40 +01:00
ganfra
92380ef3e4 knock requests : rework knock requests service to avoid reloading of data (and weird ui glitch because of them) 2024-12-18 20:24:29 +01:00
ganfra
69307f7c62 knock requests : format and clean 2024-12-18 18:13:13 +01:00
ganfra
79b0098ada knock requests : fix wrong string resource for error 2024-12-18 18:10:00 +01:00
ganfra
01f7fc20f4 Merge branch 'develop' into feature/fga/knock_requests_sdk 2024-12-18 17:21:16 +01:00
ganfra
a6decdf697 knock requests : add tests to the feature 2024-12-17 15:36:30 +01:00
ganfra
108253ca82 knock requests : make sure to use the correct confirmation submit text 2024-12-17 15:36:08 +01:00
ganfra
23cf3b1d4e knock request : simplify executing action 2024-12-17 15:35:44 +01:00
ganfra
1cc21c2d1c knock requests : makes knock can be handled and is enabled 2024-12-16 20:32:17 +01:00
ganfra
71c6b2a0e3 knock requests : manage remaining ui states 2024-12-16 12:09:14 +01:00
ganfra
ff3487307e knock requests : sync localazy 2024-12-16 11:07:38 +01:00
bmarty
e18e4142c7 Sync Strings from Localazy 2024-12-16 00:28:36 +00:00
ganfra
8a73a9c158 knock requests : branch the api in presenters 2024-12-13 20:00:00 +01:00
Benoit Marty
6e35ebcdeb Merge pull request #4010 from element-hq/feature/bma/mediaGalleryUi
Media gallery UI
2024-12-11 12:20:30 +01:00
Benoit Marty
caaa88485e Add edge case for the preview. 2024-12-10 11:58:31 +01:00
Benoit Marty
360ba2ba2f Fix alignment for edge cases. 2024-12-10 11:54:50 +01:00
Benoit Marty
7427dc1d94 Fix alignment of avatar according to Figma
https://www.figma.com/design/7TqjqdMBaPpm3IavKsMYu6/Ask-to-join-(Knocking)?node-id=4856-42262
2024-12-10 11:36:55 +01:00
Benoit Marty
8cd88e0086 Improve avatar rendering 2024-12-10 11:34:57 +01:00
Benoit Marty
0096e528c4 Sync strings. 2024-12-09 17:16:29 +01:00
Benoit Marty
61805646c8 Merge pull request #4007 from element-hq/sync-localazy
Sync Strings
2024-12-09 16:47:34 +01:00