Commit Graph

1351 Commits

Author SHA1 Message Date
jonnyandrew
a05f4d8999 [Rich text editor] Add formatting menu (#1261)
---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-09-08 16:23:15 +00:00
Benoit Marty
7564d195b5 Merge pull request #1257 from vector-im/feature/fga/sync_indicator_api
Feature/fga/sync indicator api
2023-09-08 09:54:09 +02:00
Benoit Marty
a759e08d18 rename parameter to match parent name. 2023-09-08 08:22:41 +02:00
Benoit Marty
5636996605 Merge pull request #1246 from vector-im/feature/bma/enablePolls
Feature/bma/enable polls
2023-09-07 22:48:16 +02:00
ganfra
b10932b2dd Merge branch 'develop' into feature/fga/sync_indicator_api 2023-09-07 21:56:48 +02:00
ganfra
b29a339003 Merge pull request #1251 from vector-im/feature/fga/room-list-room-info
Use roomInfo instead of individually access roomListItem properties
2023-09-07 21:09:34 +02:00
ganfra
30b2ab52f1 Use roomInfo instead of individually access roomListItem properties 2023-09-07 20:44:26 +02:00
Benoit Marty
a3b9864939 Merge pull request #1252 from vector-im/feature/bma/fabDesign
Floating action button design
2023-09-07 17:45:50 +02:00
jonnyandrew
11c1fca92e [Rich text editor] Integrate rich text editor library (#1172)
* Integrate rich text editor

* Also increase swapfile size in test CI

Fixes issue where screenshot tests are terminated due to lack of CI
resources.

See https://github.com/actions/runner-images/discussions/7188#discussioncomment-6750749

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-09-07 15:21:29 +00:00
ganfra
423c7d6444 Sync: use the new SyncIndicator api 2023-09-07 17:03:52 +02:00
Benoit Marty
017ead0720 Fix typo 2023-09-07 17:02:45 +02:00
Benoit Marty
02c94501f4 Iterate on icon in Fab in the room list. 2023-09-07 15:49:51 +02:00
Benoit Marty
355049492a Use CircleShape by default on FAB, for coherency with other platforms. 2023-09-07 15:10:10 +02:00
Benoit Marty
952ca1a143 Make a diff between FeatureFlags.defaultValue and value returned by StaticFeatureFlagProvider.isFeatureEnabled().
Iterate after Ganfra's review.
2023-09-07 12:32:21 +02:00
Benoit Marty
94407d396b To avoid mistake, FeatureFlags does not have defaultValue set to true, and StaticFeatureFlagProvider return the default value.
This fixes #1241.
2023-09-07 10:51:35 +02:00
Benoit Marty
04b9d3cc2c Rework the feature flag module.
Fix typo, rename class and interface, add doc, do small refacto, to improve code clarity.
2023-09-07 10:50:02 +02:00
Yoan Pintas
4a870fc4a5 Add room notification settings (#807)
* Add room notification settings

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: David Langley <langley.dave@gmail.com>
2023-09-07 10:24:34 +02:00
jonnyandrew
301e49c3a3 Reduce test flakiness by warming up molecule tests (#1226) 2023-09-06 10:08:21 +00:00
Benoit Marty
cada2771c5 Merge pull request #1233 from vector-im/feature/bma/fixNightly
Feature/bma/fix nightly
2023-09-06 11:53:23 +02:00
Benoit Marty
a3adb7deaa SDK 0.1.49: notification decryption is now fully handled by the Rust SDK. (#1231)
* Revert "Ensure the sync is started when receiving a Push, to ensure that the encryption loop is running."

This reverts commit 74a444966e.

* Integrate SDK from https://github.com/matrix-org/matrix-rust-sdk/pull/2505

* Enable retryDecryption() on the NotificationClient.

* SDK 0.1.49 - Encryption Sync is enabled by default now, and retryDecryption is the default too.

* Remove feature flag `UseEncryptionSync`

* Fix sample project build

* Exclude `DeveloperSettingsPresenter` from kover verification.

* Add changelog

---------

Co-authored-by: Jorge Martín <jorgem@element.io>
2023-09-06 11:33:36 +02:00
Benoit Marty
564d38d7a5 Fix R8 error, due to exclusion of analytics group done in #1221. 2023-09-06 08:58:32 +02:00
Jorge Martin Espinosa
ee3d3ae213 Replace notification permission dialog with a screen (#1223)
* Replace notification permission dialog with a screen

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-09-05 18:58:05 +02:00
Benoit Marty
e7eb798894 Merge pull request #1225 from vector-im/feature/bma/forceDarkTheme
Fix system bar color after login on light theme.
2023-09-05 17:30:56 +02:00
Benoit Marty
71319e6677 Merge pull request #1224 from vector-im/feature/bma/displayNameColor
Iterate on display name and avatar color
2023-09-05 17:24:26 +02:00
Benoit Marty
1fa53bf4c8 Merge pull request #1215 from vector-im/sync-localazy
Sync Strings
2023-09-05 16:31:49 +02:00
Benoit Marty
0d5470758e Fix system bar color after login on light theme.
Actually for the SunsetPage, we need a light status bar.
2023-09-05 16:19:04 +02:00
Benoit Marty
3168775446 Rename parameter and update comment. 2023-09-05 15:45:12 +02:00
Benoit Marty
fcc89bbb4f Use bolder font for fallback avatar. 2023-09-05 15:39:31 +02:00
Benoit Marty
eb2810e467 Avoid hard-coded number and update the related test. 2023-09-05 15:39:31 +02:00
Benoit Marty
9e1c8279b2 Composable functions that return a value should start with a lowercase letter 2023-09-05 15:39:31 +02:00
Benoit Marty
2652362e60 Apply colors to default user avatar in the timeline. 2023-09-05 12:44:36 +02:00
Benoit Marty
a79e3d41d6 Compute avatar color of users and apply foreground color to the sender displayname. 2023-09-05 12:23:42 +02:00
Benoit Marty
9db45a997d Compute avatar color of users and apply foreground color to the sender displayname. 2023-09-05 12:10:30 +02:00
Benoit Marty
a7dd09014d Merge pull request #1221 from vector-im/feature/bma/excludeAnalyticsGroup
Exclude some groups related to analytics to be included. #1191
2023-09-05 10:12:15 +02:00
jmartinesp
c3b883623c Sync Strings from Localazy 2023-09-05 06:37:36 +00:00
Benoit Marty
d1156eca76 Exclude some groups related to analytics to be included. #1191 2023-09-04 15:59:01 +02:00
Benoit Marty
74a444966e Ensure the sync is started when receiving a Push, to ensure that the encryption loop is running.
Fixes notification with endecrypted content (#1178)
2023-09-04 12:50:37 +02:00
Benoit Marty
17f3ed7aa7 Developer setting: add entry point to configure the Tracing.
Developer setting: add screen to configure log level.

Give the custom trace filter to the SDK.
2023-09-01 16:26:39 +02:00
Benoit Marty
da446dad55 Remove the log, was causing a crash.
kotlin.reflect.jvm.internal.KotlinReflectionInternalError: Function 'handleEvents' (JVM signature: present$handleEvents(Landroidx/compose/runtime/MutableState;Lkotlin/jvm/internal/Ref$ObjectRef;Lio/element/android/libraries/permissions/api/PermissionsEvents;)V) not resolved in class kotlin.jvm.internal.Intrinsics$Kotlin: no members found
    at kotlin.reflect.jvm.internal.KDeclarationContainerImpl.findFunctionDescriptor(KDeclarationContainerImpl.kt:131)
    at kotlin.reflect.jvm.internal.KFunctionImpl$descriptor$2.invoke(KFunctionImpl.kt:56)
    at kotlin.reflect.jvm.internal.KFunctionImpl$descriptor$2.invoke(KFunctionImpl.kt:55)
    at kotlin.reflect.jvm.internal.ReflectProperties$LazySoftVal.invoke(ReflectProperties.java:93)
    at kotlin.reflect.jvm.internal.ReflectProperties$Val.getValue(ReflectProperties.java:32)
    at kotlin.reflect.jvm.internal.KFunctionImpl.getDescriptor(KFunctionImpl.kt:55)
    at kotlin.reflect.jvm.internal.KFunctionImpl.toString(KFunctionImpl.kt:185)
    at kotlin.jvm.internal.FunctionReference.toString(FunctionReference.java:130)
    at java.lang.String.valueOf(String.java:4092)
    at java.lang.StringBuilder.append(StringBuilder.java:179)
    at io.element.android.libraries.permissions.api.PermissionsState.toString
    at java.lang.String.valueOf(String.java:4092)
    at java.lang.StringBuilder.append(StringBuilder.java:179)
    at io.element.android.libraries.permissions.impl.DefaultPermissionsPresenter.present(DefaultPermissionsPresenter.kt:128)
2023-08-31 17:41:00 +02:00
Marco Romano
88eda62f56 New icon for "poll end" in both action menu and timeline item. (#1203)
- Also fixes preview of action list (reply is included as it will soon be added).
2023-08-31 15:40:51 +02:00
Marco Romano
4ba8e9b7fe Enable polls (#1196)
Enable the Polls feature. Allows to create, view, vote and end polls.
2023-08-31 13:17:11 +00:00
Marco Romano
d736261317 Poll end (#1182)
- Adds an "End Poll" item in the action list long press menu.
  - Shows only on remote polls that have not ended yet and only if the user is the creator or has redact powers.

Closes https://github.com/vector-im/element-meta/issues/2026
2023-08-31 14:39:11 +02:00
Jorge Martin Espinosa
e4124e93b8 Re-enable SyncService.withEncryptionSync to improve decryption of notifications (#1199)
* Re-enable `SyncService.withEncryptionSync` to improve decryption of notifications.

* Add feature flag
2023-08-31 13:37:20 +02:00
Jorge Martin Espinosa
b16dc45754 Fix the orientation of sent images (#1190)
* Fix the orientation of sent images

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2023-08-30 17:02:37 +00:00
Benoit Marty
0ee57c83a9 Rename file and update tosUri value. 2023-08-30 16:47:40 +02:00
Marco Romano
023bfc2ffa Upgrade rust sdk to v48 (#1186)
- Sends content instead of string in message reply and edit
- Adds poll response and end APIs
- Adds logoUri to OidcConfiguration
2023-08-30 14:31:37 +00:00
Benoit Marty
e67c7ac9f1 Merge pull request #1177 from vector-im/feature/bma/analyticsSettingLink
Fix issue on analytics setting link
2023-08-30 11:16:46 +02:00
Jorge Martin Espinosa
400315e39a Make sure Snackbars are only displayed once (#1175)
* Make sure Snackbars are only displayed once

* Use a queue instead

* Fix docs

* Add tests for `SnackbarDispatcher`.
2023-08-30 10:43:23 +02:00
Benoit Marty
bae963c4bc Reorder params. 2023-08-30 10:28:44 +02:00
Jorge Martín
0a77590e76 Split link text into a ListSupportingText component.
This also requires some internal changes to `ListSupportingText`, `ClickableLinkText` and `TimelineTextView` to match the behaviour and design.
2023-08-30 09:33:53 +02:00