Commit Graph

1714 Commits

Author SHA1 Message Date
Benoit Marty 5013ff061e Secure backup: create a feature flag (disabled) 2023-10-31 21:52:33 +01:00
Benoit Marty 3e9710a0c1 Do not throw the exception. 2023-10-31 21:03:43 +01:00
Benoit Marty 2f62779ad4 Sign out: handle no network error. 2023-10-31 21:03:43 +01:00
Benoit Marty 4fb825b5cb TimelineEncryptedHistoryBannerView: render depend on verification and key backup state (#1576) 2023-10-31 21:03:43 +01:00
Benoit Marty 20d6383b8a Map new state BackupUploadState.Error 2023-10-31 21:03:43 +01:00
ganfra 6832b1f2db Feature/fga/biometric unlock (#1702)
* Biometric unlock : refactor a bit existing classes

* Biometric unlock : first implementation

* Biometric: add ui for biometric setup

* Biometric unlock : use localazy strings

* Biometric unlock setup : branch skip/allow events

* Biometric : fix tests

* Biometrics: add small test

* Biometric : clean up

* Update screenshots

* Biometric unlock : address some PR review

* Biometric : improve a bit edge cases

* Fix lint issues

---------

Co-authored-by: ganfra <francoisg@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-10-31 19:22:43 +01:00
ganfra ed26c74627 LockScreen : enable the feature 2023-10-31 18:23:48 +01:00
Benoit Marty 89e7ff44a2 Merge pull request #1703 from vector-im/feature/bma/featureFlagFlow
Change FeatureFlagService.isFeatureEnabled return value from Boolean to Flow<Boolean>
2023-10-31 17:14:59 +01:00
Jorge Martin Espinosa 355ee95964 [Element Call] Keep MatrixClient alive while the call is working (#1695)
* Element Call: keep MatrixClient alive to get event updates
2023-10-31 16:58:33 +01:00
Benoit Marty f554fb8dcc Change FeatureFlagService.isFeatureEnabled return value from Boolean to Flow<Boolean> 2023-10-31 16:49:19 +01:00
Jorge Martin Espinosa 3bbaf8e5e7 Improve the logs for TimelineException.CannotPaginate (#1708) 2023-10-31 15:43:18 +00:00
Marco Romano c377656354 Show "Voice message" in voice message push notifications (#1705)
Don't show the event body anymore as it's not relevant for voice messages.
2023-10-31 15:27:17 +01:00
jonnyandrew 95a2152714 Fix long press on voice message with screen reader (#1704)
As a workaround, disable seeking within the waveform so that it does
not interfere with the long press menu.

Seeking behaviour is already suboptimal given that there is no spoken
feedback about the current seek position. No core functionality is
lost as voice messages can be played using a screen reader.
2023-10-31 13:00:08 +00:00
Benoit Marty 5728d621bb Merge pull request #1648 from vector-im/feature/bma/secureBackup
Secure backup
2023-10-30 21:29:54 +01:00
Benoit Marty a63cd90b39 Merge pull request #1687 from vector-im/sync-localazy
Sync Strings
2023-10-30 20:20:29 +01:00
Benoit Marty 90b377b3a5 Secure Storage: improve API for waitForBackupUploadSteadyState() 2023-10-30 20:16:18 +01:00
Marco Romano 609b100a76 Fix wrong CompoundColors mapping (#1692)
* Fix wrong CompoundColors mapping

Fixes https://github.com/vector-im/compound/issues/262

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-10-30 18:22:42 +01:00
Jorge Martin Espinosa 356a321788 Fix issues with stuck 'loading...' state and hangup (#1690)
* Fix issues with stuck 'loading...' state and hangu
2023-10-30 17:01:54 +01:00
bmarty ffd02b831e Sync Strings from Localazy 2023-10-30 14:50:36 +00:00
jonnyandrew fa66ffc06d Improve composer UI scaling (#1689) 2023-10-30 12:41:05 +00:00
jonnyandrew 18ca1da1b5 Add haptic feedback to voice message record button (#1686) 2023-10-30 12:01:39 +00:00
Benoit Marty 6c146f0033 Merge pull request #1680 from vector-im/sync-localazy
Sync Strings
2023-10-30 12:38:41 +01:00
Jorge Martin Espinosa e64f822f5a Enable Element Call integration in rooms by default (#1685)
Also change base url to `call.element.dev`.
2023-10-30 11:33:22 +00:00
Marco Romano 7651cf1b33 Voice message button: Show proper disabled color. (#1682)
Also changes a bit our own IconButton api to allow to mirror material's and allow color customization.
2023-10-30 10:51:22 +00:00
Benoit Marty 9472081317 Merge pull request #1670 from vector-im/feature/bma/topBarInPage
Top bar in page
2023-10-30 10:46:25 +01:00
bmarty 8350382440 Sync Strings from Localazy 2023-10-30 00:10:04 +00:00
Marco Romano a51fdf9fb8 Blink red dot while recording voice message (#1677)
Story: https://github.com/vector-im/element-meta/issues/2084
2023-10-27 21:12:43 +00:00
jonnyandrew 8121d1a6de Show voice message preview player progress (#1675)
* Show voice message preview player progress

* Update screenshots

* Fix test

* Some nits over mediaplayer stuff

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Marco Romano <marcor@element.io>
2023-10-27 20:43:52 +00:00
Benoit Marty b77089f1b6 Merge pull request #1662 from vector-im/feature/bma/secureBackupUi
Secure backup UI
2023-10-27 18:36:38 +02:00
Marco Romano f3c4c6218e Use correct icon tint in voice message preview player (#1672)
Action item from design review.
2023-10-27 16:24:16 +00:00
Benoit Marty 99fbb1919d Add topBar parameter to HeaderFooterPage and use a Scaffold. 2023-10-27 18:21:05 +02:00
jonnyandrew b046493a7b Merge pull request #1671 from vector-im/jonny/voice-message-fixes
Fix voice message preview player playing after delete/send
2023-10-27 16:49:38 +01:00
Benoit Marty 5954cef442 Merge pull request #1666 from vector-im/feature/bma/mergeFallbackNotification
Display a single notification for unable to decrypt Event received form push (fallback notification)
2023-10-27 17:42:22 +02:00
Marco Romano c3cbf4de96 Default enable voice message feature flag (#1669)
:party
2023-10-27 15:16:32 +00:00
jonnyandrew 7ebea4acf1 Refactor waveform factory function 2023-10-27 16:05:34 +01:00
Marco Romano a07286ace9 Split VoiceMessageType from AudioMessageType (#1664)
Currently, for compatibility reasons, we implement MSC3245v1 which puts the voice data inside an audio message type. Though at times it seems impractical to deal with a single message type which effectively represents 2 different kinds of messages.

This PR creates a new message type called `VoiceMessageType` which is used whenever we receive an event with `"msgtype": "m.audio"` which also has the `"org.matrix.msc3245.voice": {}` field. This makes it easier to process voice messages as different entities throughout the rest of the codebase.
2023-10-27 16:02:16 +02:00
David Langley af513a8023 Fix documentation 2023-10-27 13:55:42 +01:00
Benoit Marty cb0abd4c12 Display a single notification for all the fallback notifications.
When dismissed, dismiss all the fallback notifications in the model.
2023-10-27 14:55:10 +02:00
David Langley a4df8f80cc Merge branch 'develop' of https://github.com/vector-im/element-x-android into langleyd/live_waveform 2023-10-27 13:54:18 +01:00
Marco Romano 0e4141863b Always treat waveform as List<Float> (#1663)
[MSC3246](https://github.com/matrix-org/matrix-spec-proposals/pull/3246) specifies the waveform as a list of ints because:

> Because floating point numbers are not allowed in Matrix events

Though DSP on audio data is almost always done using their floating point representation.
This PR brings the float<->int rescaling in the `matrix` module so that the application code can always work with float waveform samples.
2023-10-27 12:49:58 +00:00
Benoit Marty 3482452011 Notification: fix issue: clear event only for the matching session.
We do not have multi session so the bug is not visible yet.
2023-10-27 14:41:39 +02:00
Marco Romano a6e4644cfa Add missing screenshots in TimelineView (#1660)
Add audio, voice  and poll screenshots to TimelineView which were missing.
2023-10-27 12:18:28 +00:00
David Langley a64003355a Merge branch 'develop' of https://github.com/vector-im/element-x-android into langleyd/live_waveform 2023-10-27 13:10:32 +01:00
David Langley 977c7e265a Fix naming and waveform previews 2023-10-27 13:06:33 +01:00
jonnyandrew 9510d43289 Add waveform to voice message preview UI (#1661)
* Add waveform to preview UI

* Update screenshots

* Make random waveform function deterministic

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-10-27 11:33:35 +00:00
David Langley 37f8195956 Merge branch 'develop' of https://github.com/vector-im/element-x-android into langleyd/live_waveform 2023-10-27 12:28:46 +01:00
Jorge Martin Espinosa 44de6adb86 Initial support for member suggestions (#1631)
* Initial support for member suggestion (search and UI)

* Add custom `BottomSheetScaffold` implementation to workaround several scrolling bugs

* Start searching as soon as `@` is typed, add UI following initial designs

* Extract suggestion processing code

* Extract component, add previews, fix tests

* Add tests

* Add exception from kover to the forked bottom sheet code

* Add a feature flag for mentions

- Extract composer & mention suggestions to their composable.
- Extract mentions suggestions processing to its own class.
- Add `MatrixRoom.canTriggerRoomNotification` function.
- Update strings and conditions for displaying the `@room` mention.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-10-27 10:26:40 +00:00
Benoit Marty 9807ebf649 Secure backup 2023-10-27 12:18:40 +02:00
David Langley 5da40abba3 Merge branch 'langleyd/live_waveform' of https://github.com/vector-im/element-x-android into langleyd/live_waveform 2023-10-27 10:56:48 +01:00
David Langley 8321eaf19d Fix tests 2023-10-27 10:56:45 +01:00