Commit Graph

1319 Commits

Author SHA1 Message Date
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
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
Florian Renaud
e599777b89 Merge pull request #1161 from vector-im/feature/fre/polls_timeline_item_tests
[Polls] Add unit tests for TimelineItemContentPollFactory
2023-08-30 08:32:21 +02:00
renovate[bot]
78eb7aea81 Update kotlin to 1.9.10 (#1123)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-30 08:28:06 +02:00
Marco Romano
b4e6d83fb7 "Create poll" UI (#1143)
NB: This is missing analytics, which will be added once https://github.com/matrix-org/matrix-analytics-events/pull/85 is merged.

Closes https://github.com/vector-im/element-meta/issues/2011
2023-08-29 22:31:21 +02:00
Benoit Marty
88786cdda6 Use buildAnnotatedStringWithStyledPart and remove copied code. 2023-08-29 16:38:21 +02:00
Florian Renaud
c710cb7432 Add unit tests for TimelineItemContentPollFactory 2023-08-29 16:00:18 +02:00
Benoit Marty
011fa6af67 Merge pull request #1128 from vector-im/feature/bma/cleanupOidc
Cleanup OIDC
2023-08-28 15:08:36 +02:00
Benoit Marty
56c637ce7d Merge branch 'develop' into feature/bma/settingUpAccount 2023-08-28 13:02:44 +02:00
Benoit Marty
1a6376e723 Merge branch 'develop' into feature/bma/dataObject 2023-08-28 10:56:02 +02:00
Benoit Marty
fae5737356 Use a safer algorithm, and limit the size of the hashed string.
Fix an issue reported by Sonar.
2023-08-25 15:49:50 +02:00
Benoit Marty
a2a9fda583 Add preview for SunsetPage and fix warnings about Modifiers. 2023-08-25 14:38:34 +02:00
Benoit Marty
addb0dc3bc Fix warning. 2023-08-25 14:37:55 +02:00
Benoit Marty
c2cfa4a606 Add the Migrate session screen (#1145) 2023-08-25 13:52:32 +02:00
Benoit Marty
7a602790ab Localazy: move string screen_migration_ to ftue/impl module and sync the strings. 2023-08-25 13:52:32 +02:00
Benoit Marty
4ecd4c636f Extract Composable to new SunsetPage. 2023-08-25 13:49:40 +02:00
Benoit Marty
cd558bc09f Import strings with Localazy. 2023-08-25 12:15:06 +02:00
Florian Renaud
9999b95852 Merge pull request #1113 from vector-im/feature/fre/improve_poll_event_timeline_rendering
[Poll] Render ended poll and improve UI in the timeline
2023-08-25 10:14:15 +02:00
Florian Renaud
87e314fe4d Use a single preview for radio buttons with checked & unchecked states 2023-08-25 09:01:20 +02:00
Marco Romano
9942710207 ListItem: Don't apply clickable modifier if onClick is null. (#1146)
If it is applied but disabled (like before this PR) it will hijack all touch input from the view and no other component in it can respond to clicks.
2023-08-24 15:11:13 +00:00
Jorge Martin Espinosa
7f50671a45 Improve list items: add lists to dialogs, rework ListItem customizations (#1119)
* Improve list items:

- Create `ListItemContent`.
- Create `ListItemStyle`.
- Apply those to `ListItem` components.
- Create helper list item components for checkboxes, switches, radio buttons.
* Create single/multiple selection dialogs.
* Create `SingleSelectionListItem` and `MultipleSelectionListItem`
- Add `subtitle` to `AlertDialogContents`.
- Fix paddings and margins inside dialogs.
- Add `ListOption`.
* Adds small delay before hiding the single selection dialog.
---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-24 15:11:05 +02:00
Florian Renaud
ebf6a98c34 Merge remote-tracking branch 'origin/develop' into feature/fre/improve_poll_event_timeline_rendering 2023-08-24 14:42:16 +02:00
Jorge Martin Espinosa
39ef780fe7 Prevent verification while initial sync is in progress (#1138)
* Prevent verification while initial sync is in progress

* Add `canVerifySessionFlow` to simplify the check
2023-08-24 11:43:36 +00:00
Marco Romano
f5fd505bc2 Surface send poll start API from rust sdk (#1140)
Rust api added in: https://github.com/matrix-org/matrix-rust-sdk/pull/2391

Closes https://github.com/vector-im/element-meta/issues/2010
2023-08-24 11:54:01 +02:00
Jorge Martin Espinosa
6457f3c4f5 Fix sent videos being cropped (#1124) 2023-08-24 09:41:58 +02:00
Benoit Marty
52853101d9 migrate object to data object (#1135) 2023-08-24 09:32:44 +02:00
renovate[bot]
f9057029cf Update dependency org.matrix.rustcomponents:sdk-android to v0.1.46 (#1130)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.46

* Remove poll end code. The poll end event isn't shown in the timeline anymore.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Romano <marcor@element.io>
2023-08-24 06:43:05 +00:00
Benoit Marty
7278fae142 Handle remarks from PR #1127 2023-08-23 17:23:12 +02:00
Benoit Marty
6941bc69f6 Merge pull request #1127 from vector-im/feature/bma/finishOidc
Enable OIDC support
2023-08-23 17:01:41 +02:00
Jorge Martin Espinosa
80aaa8b8ab When event has no id, just cancel parsing the latest room message (#1126) 2023-08-23 12:50:22 +00:00
Benoit Marty
10e8517766 Implement didRefreshTokens(): update database with updated SessionData. 2023-08-23 14:42:46 +02:00
Benoit Marty
9c46ac8f5c Merge pull request #1112 from vector-im/feature/bma/fixButtonTheme
Fix button theme
2023-08-23 13:16:26 +02:00
Benoit Marty
79aa128377 Add setting entry point to manage account (OIDC) 2023-08-23 12:54:22 +02:00
Benoit Marty
06a9b129d0 Restore OIDC support. 2023-08-23 12:18:42 +02:00