Commit Graph

12563 Commits

Author SHA1 Message Date
Maxime NATUREL b43c3a8502 Adding unit tests on UpdateEnableNotificationsSettingOnChangeUseCase 2022-11-10 10:00:27 +01:00
Maxime NATUREL 2eeb04426b Adding unit tests on DisableNotificationsForCurrentSessionUseCase 2022-11-10 10:00:27 +01:00
Maxime NATUREL e5e971683b Adding unit tests on CanTogglePushNotificationsViaPusherUseCase 2022-11-10 10:00:27 +01:00
Maxime NATUREL 18929324fe Updating existing unit tests 2022-11-10 10:00:27 +01:00
Maxime NATUREL 6239b3e686 Adding some TODOs 2022-11-10 10:00:27 +01:00
Maxime NATUREL 24a5cfa9e5 Listen for pusher or account data changes to update the local setting 2022-11-10 10:00:27 +01:00
Maxime NATUREL 67d2a6faab Use the preference value to render the push notifications toggle 2022-11-10 10:00:26 +01:00
Maxime NATUREL 2941cfa329 Adding use cases to handle toggle of push notifications for current session 2022-11-10 10:00:26 +01:00
dependabot[bot] e84c68495f
Bump posthog from 1.1.2 to 2.0.0
Bumps [posthog](https://github.com/PostHog/posthog-android) from 1.1.2 to 2.0.0.
- [Release notes](https://github.com/PostHog/posthog-android/releases)
- [Changelog](https://github.com/PostHog/posthog-android/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PostHog/posthog-android/compare/1.1.2...2.0.0)

---
updated-dependencies:
- dependency-name: com.posthog.android:posthog
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-09 23:03:47 +00:00
Onuray Sahin b2589a1e4d Merge branch 'develop' into feature/ons/fix_device_manager_verified_desc 2022-11-09 19:05:07 +03:00
Onuray Sahin b81fc4f8f1 Merge branch 'develop' into feature/ons/toggle_ip_address_visibility
# Conflicts:
#	vector/src/test/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewViewModelTest.kt
2022-11-09 18:09:22 +03:00
Onuray Sahin 46c60f5897 Fix unit tests. 2022-11-09 16:57:16 +03:00
dependabot[bot] 25d33e9b1a
Bump kotlin-reflect from 1.7.20 to 1.7.21
Bumps [kotlin-reflect](https://github.com/JetBrains/kotlin) from 1.7.20 to 1.7.21.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-reflect
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 23:11:03 +00:00
Onuray Sahin e888c11747 Lint fix. 2022-11-08 20:05:16 +03:00
Onuray Sahin f6bc28f3bf Persist user preference of ip address visibility. 2022-11-08 17:43:48 +03:00
Onuray Sahin 0868869fe3 Toggle ip address on sessions overview screen. 2022-11-08 16:33:20 +03:00
Maxime NATUREL fc24beaa68
Merge pull request #7456 from vector-im/feature/mna/session_manager_multi_signout
[Session manager] Multi-session signout (PSG-857)
2022-11-08 14:21:14 +01:00
Onuray Sahin b5e8375592 Toggle ip address on other sessions screen. 2022-11-08 15:16:09 +03:00
Onuray Sahin eed2a74d07 Toggle ip address on others section of the main screen. 2022-11-08 14:36:27 +03:00
Maxime NATUREL 6d2620815c Moving UI auth interceptor into use case 2022-11-07 16:52:41 +01:00
Onuray Sahin 456762a464 Add toggle ip address menu option. 2022-11-07 18:26:54 +03:00
Florian Renaud c1dd66003a improve end of voice broadcast check 2022-11-07 16:11:10 +01:00
Florian Renaud 4e53366727 Fix default visibility of fast backward/forward buttons 2022-11-07 16:11:10 +01:00
Florian Renaud 9e83d88f08 Fix seek position when listening another voice broadcast 2022-11-07 16:11:10 +01:00
Florian Renaud be18f4ec78 remove unused imports 2022-11-07 16:11:10 +01:00
Florian Renaud 305a362e9e Fix play action on other voice broadcast than the current one 2022-11-07 16:11:09 +01:00
Florian Renaud 6b57b1190c Make AudioMessagePlaybackTracker.Listener interface funny 2022-11-07 16:11:09 +01:00
Florian Renaud 226e2026a1 Remove item listeners 2022-11-07 16:11:09 +01:00
Florian Renaud 1c40f9c5e8 Minor cleanup 2022-11-07 16:11:09 +01:00
Florian Renaud aa8eec221a Enable fast backward/forward buttons 2022-11-07 16:11:09 +01:00
Florian Renaud c5e6eb0d0e Remove some logs 2022-11-07 16:11:09 +01:00
Florian Renaud baa9cb39b0 Fix broken live listening 2022-11-07 16:11:09 +01:00
Benoit Marty dff210c6c9
Merge pull request #7498 from vector-im/dependabot/gradle/com.gabrielittner.threetenbp-lazythreetenbp-0.12.0
Bump lazythreetenbp from 0.11.0 to 0.12.0
2022-11-07 15:42:59 +01:00
Benoit Marty cfd930f942
Merge pull request #7531 from vector-im/sync-analytics-plan
Sync analytics plan
2022-11-07 15:35:05 +01:00
Florian Renaud 7d51a26522 Decrease tick interval 2022-11-07 15:34:55 +01:00
Florian Renaud 436e76c756 Fix seek on paused state 2022-11-07 15:34:55 +01:00
Florian Renaud b2f35fa135 Improve PlaybackTicker 2022-11-07 15:34:55 +01:00
Florian Renaud a47e3c1233 Improve playing state updates 2022-11-07 15:34:55 +01:00
Florian Renaud 266236c1e5 set playlist.currentSequence null by default 2022-11-07 15:34:55 +01:00
Florian Renaud 43a112839f Fix seek when playlist is not loaded 2022-11-07 15:34:55 +01:00
Florian Renaud a320155546 reset nextMediaPlayer when item has changed 2022-11-07 15:34:54 +01:00
Florian Renaud a3cd861e15 Add isPreparingNextPlayer flag 2022-11-07 15:34:54 +01:00
Florian Renaud b87b2cbb63 Remove useless method 2022-11-07 15:34:54 +01:00
Florian Renaud 37c75354be VoiceBroadcastPlayer - Reorganize some code 2022-11-07 15:34:54 +01:00
Florian Renaud c85b159952 VoiceBroadcastPlayer - Extract some code to VoiceBroadcastPlaylist 2022-11-07 15:34:54 +01:00
Florian Renaud dae4162e75 VoiceBroadcastPlayerImpl - use session coroutine scope 2022-11-07 15:34:54 +01:00
Florian Renaud 392fe6fa32 Transform TickListener to fun interface 2022-11-07 15:34:54 +01:00
Florian Renaud d89ef6988b Improve player seek 2022-11-07 15:34:53 +01:00
Benoit Marty 7a24e16092
Merge pull request #7501 from SpiritCroc/duplicated-pill-fixes
Fix duplicated pills when pills contain other spans
2022-11-07 15:33:34 +01:00
Onuray Sahin 44c0378de8 Fix description of verified sessions. 2022-11-07 14:46:32 +03:00
Jorge Martin Espinosa f0340d5ced
When joining a room, the message composer should be visible once the room loads (#7510) 2022-11-07 11:58:34 +01:00
Maxime NATUREL 45050e8216 Removing error formatting from ViewModel 2022-11-07 11:45:31 +01:00
Maxime NATUREL 5515cd379f Use SHOW_AS_ACTION_IF_ROOM tag 2022-11-07 11:09:42 +01:00
Maxime NATUREL d2d9da3ef7 Exclude the current session from other sessions and security recommendation screens 2022-11-07 11:09:42 +01:00
Maxime NATUREL ef5aaf7525 Fix forbidden usage of AlertDialog 2022-11-07 11:09:42 +01:00
Maxime NATUREL db42d1c01c Fix post rebase unit tests 2022-11-07 11:09:42 +01:00
Maxime NATUREL 4b0b335a68 Fixing code quality issues 2022-11-07 11:09:42 +01:00
Maxime NATUREL e0d511a488 Fixing a name of a mocked component 2022-11-07 11:09:42 +01:00
Maxime NATUREL a3df90ae3e Adding unit tests about multi signout action for devices view model 2022-11-07 11:09:42 +01:00
Maxime NATUREL 880ee4058c Adding unit tests about reAuth actions for devices view model 2022-11-07 11:09:42 +01:00
Maxime NATUREL 5bcf2ac51e Adding unit tests for other sessions list view model 2022-11-07 11:09:41 +01:00
Maxime NATUREL a968ac08c3 Adding unit tests for signout sessions use case 2022-11-07 11:09:41 +01:00
Maxime NATUREL 727c7462df Adding confirmation dialog before signout process 2022-11-07 11:09:41 +01:00
Maxime NATUREL 0f8e5919da Calling signout multi sessions use case in main screen for other sessions 2022-11-07 11:09:41 +01:00
Maxime NATUREL 1bda54323a Calling signout multi sessions use case in other sessions screen 2022-11-07 11:09:41 +01:00
Maxime NATUREL 7e836c0e97 Updating the action title to include sessions number 2022-11-07 11:09:41 +01:00
Maxime NATUREL 810c93cef9 Handling press on multi signout action from header menu in other sessions section 2022-11-07 11:09:41 +01:00
Maxime NATUREL ae4a728358 Handling press on multi signout action in other sessions list screen 2022-11-07 11:09:41 +01:00
Maxime NATUREL 1ed92e5215 Adding overflow menu capability in sessions list header view 2022-11-07 11:09:41 +01:00
Maxime NATUREL f45cc715d1 Adding new menu entry for multi signout 2022-11-07 11:09:41 +01:00
bmarty 46260b5768 Sync analytics plan 2022-11-07 00:04:35 +00:00
Florian Renaud 6d850b3030 Create VoiceBroadcast model with roomId and eventId 2022-11-04 11:36:15 +01:00
Florian Renaud b0a31304a1 Update seek bar tick progress while playing 2022-11-04 11:36:14 +01:00
Maxime NATUREL 4621488f21
Merge pull request #7476 from vector-im/fix/mna/push-toggle-check-support
[Session manager] Hide push notification toggle when there is no server support (PSG-970)
2022-11-04 09:19:04 +01:00
Maxime NATUREL e9daef97b6 Fix order of check to get notification status 2022-11-03 11:27:02 +01:00
dependabot[bot] bb02209537
Bump checker from 3.11.0 to 3.27.0
Bumps [checker](https://github.com/typetools/checker-framework) from 3.11.0 to 3.27.0.
- [Release notes](https://github.com/typetools/checker-framework/releases)
- [Changelog](https://github.com/typetools/checker-framework/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/typetools/checker-framework/compare/checker-framework-3.11.0...checker-framework-3.27.0)

---
updated-dependencies:
- dependency-name: org.checkerframework:checker
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 23:10:39 +00:00
Florian Renaud 481388ed32 Fix line length 2022-11-02 17:06:24 +01:00
Florian Renaud b41346cdce Improve player transitions 2022-11-02 17:06:24 +01:00
Florian Renaud eb61a23bf6 Temporary disable seekBar if playing state is paused or idle 2022-11-02 17:06:24 +01:00
Florian Renaud 7d3f6365e2 Use sum() instead of reduce operator 2022-11-02 17:06:24 +01:00
Florian Renaud bc3fe4e5f6 Minor cleanup 2022-11-02 17:06:24 +01:00
Florian Renaud 9219043579 VoiceBroadcastPlayer - seek implementation 2022-11-02 17:06:24 +01:00
Florian Renaud a851e5aa85 VoiceBroadcastPlayer - Add seek control views 2022-11-02 17:06:23 +01:00
Jorge Martín 5c55a3261f Merge remote-tracking branch 'origin/develop' into resilience-rc 2022-11-02 16:00:34 +01:00
ganfra d954c9eae4
Merge pull request #6195 from vector-im/feature/bma/jitsi_5_1_0
Upgrade Jitsi SDK to 6.2.2
2022-11-02 12:10:25 +01:00
Maxime NATUREL ac05e757be Small improvement to avoid tou many viewState updates 2022-11-02 09:37:10 +01:00
Maxime NATUREL e67cc2b2db Adding unit tests on GetNotificationsStatusUseCase 2022-11-02 09:37:10 +01:00
Maxime NATUREL 62912f891c Introducing a NotificationsStatus to render the push notification toggle in session overview screen 2022-11-02 09:37:10 +01:00
Maxime NATUREL 1acb42f61d Adding use case to check support for new enabled field support 2022-11-02 09:37:10 +01:00
Amit Kumar b6746653f1
Add metrics plugin to track device download keys task (#7438)
* Add metrics tracking plugin for download device keys

* Add support for multiple metrics plugin

* Update copyright license header in matrix-sdk-android

* Add tests for MetricExtension

* Update changelog

* Improve MetricsExtension and reformatting
2022-11-02 13:43:57 +05:30
Florian Renaud 20abef26b0 Filter duplicated events in live voice broadcasts 2022-11-01 17:59:59 +01:00
SpiritCroc 411c8c9096 Fix duplicated pills when pills contain other spans
Fixes following issues:
- Duplicated pills if the mention contains an image: https://github.com/SchildiChat/SchildiChat-android/issues/148
- Duplicated pills if these contain underscores: https://github.com/SchildiChat/SchildiChat-android/issues/156
2022-11-01 11:21:27 +01:00
dependabot[bot] d2012ae022
Bump lazythreetenbp from 0.11.0 to 0.12.0
Bumps [lazythreetenbp](https://github.com/gabrielittner/lazythreetenbp) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/gabrielittner/lazythreetenbp/releases)
- [Changelog](https://github.com/gabrielittner/lazythreetenbp/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gabrielittner/lazythreetenbp/compare/0.11.0...0.12.0)

---
updated-dependencies:
- dependency-name: com.gabrielittner.threetenbp:lazythreetenbp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-31 23:10:15 +00:00
Jorge Martin Espinosa 7ba1052bcf
Fix rich text editor EditText not resizing properly in full screen (#7491)
* Fix rich text editor full screen mode

* Add changelog

* Address review comments.
2022-10-31 16:43:01 +01:00
Jorge Martin Espinosa 76ead3f344
Fix new line and enter key presses deleting existing text in some keyboards (#7437) 2022-10-31 16:16:42 +01:00
Florian Renaud d7791402b7 Fix unit tests 2022-10-31 15:18:24 +01:00
Jorge Martin Espinosa ce35472824
Fix share actions from outside the app (#7473) 2022-10-31 11:39:38 +00:00
Florian Renaud a06efb7abd Fix lint issues 2022-10-31 10:58:09 +01:00
Joaquín Aguirrezabalaga 3a430efb02 Add setting to allow disabling direct share
Direct share continues to be enabled by default.

As requested in #2725

Signed-off-by: Joaquín Aguirrezabalaga <kinote@kinote.org>
2022-10-30 11:32:52 +01:00
Benoit Marty fbabe50875 Fix vulnerability 2022-10-28 16:41:44 +02:00
Benoit Marty 46d1795276 Fix crash due to missing notification
Thread: main, Exception: java.lang.RuntimeException: Unable to start service org.jitsi.meet.sdk.JitsiMeetOngoingConferenceService@3d1f0bc with Intent { cmp=im.vector.app.debug/org.jitsi.meet.sdk.JitsiMeetOngoingConferenceService (has extras) }: java.lang.IllegalArgumentException: Invalid notification (no valid small icon): Notification(channel=JitsiOngoingConferenceChannel pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0xa color=0x00000000 category=call actions=2 vis=PUBLIC semFlags=0x0 semPriority=0 semMissedCount=0)
2022-10-28 11:10:08 +02:00
Florian Renaud 362696cfc8 VoiceBroadcast - Show error dialog if user is not able to record a voice broadcast 2022-10-28 10:43:34 +02:00
Florian Renaud 838e11c167 rename observeIncomingEvents method and reorder some methods 2022-10-28 10:43:05 +02:00
Florian Renaud 3fcac097d3 VoiceBroadcastPlayer - Fetch playlist in dedicated use case and improve player 2022-10-27 23:50:21 +02:00
Florian Renaud 174ba4f4cc VoiceBroadcastPlayer - Create player interface and move implementation to dedicated class 2022-10-27 16:54:32 +02:00
Benoit Marty 6b34bb2086 Fix issue with Back button not working when conference is not joined yet. 2022-10-27 16:10:40 +02:00
Benoit Marty 1b5852fbcb API break, replace `leave()` by broadcast 2022-10-27 14:37:29 +02:00
Benoit Marty f93f43bf8b Fix issue with Jitsi compilation
Error was lots of `Duplicate class org.checkerframework.common.reflection.qual.MethodVal found in modules jetified-checker-3.1 (org.checkerframework:checker:3.1.1) and jetified-checker-qual-3.12.0 (org.checkerframework:checker-qual:3.12.0)
Cannot use latest 3.15.0 since it required min API 26.
2022-10-27 14:36:45 +02:00
Benoit Marty ac4785a0dd Fix lint issue 2022-10-27 14:36:45 +02:00
Benoit Marty 4515dcdfe9 Update Jitsi and WebRtc dependencies to android-sdk-6.2.2 2022-10-27 14:34:58 +02:00
jonnyandrew c776aae9d0
[Rich text editor] Add plain text mode and new attachment UI (#7459)
* Add new attachments selection dialog

* Add rounded corners to bottom sheet dialog.

Note these are currently only visible in the collapsed state.
- [Google issue](https://issuetracker.google.com/issues/144859239)
- [Rejected PR](https://github.com/material-components/material-components-android/pull/437)
- [Github issue](https://github.com/material-components/material-components-android/issues/1278)

* Add changelog entry

* Remove redundant call to superclass click listener

* Refactor to use view visibility helper

* Change redundant sealed class to interface

* Remove unused string

* Revert "Add rounded corners to bottom sheet dialog."

This reverts commit 17c43c9188.

* Remove redundant view group

* Remove redundant `this`

* Update rich text editor to latest

* Update rich text editor version

* Allow toggling rich text in the new editor

* Persist the text formatting setting

* Add changelog entry
2022-10-26 18:37:40 +02:00
Eric Decanini 29d3856ef2
Merge pull request #7424 from vector-im/feature/eric/msc3773
Implements MSC3773 (Thread Notifications)
2022-10-26 10:44:32 -04:00
Florian Renaud bdfc96ff66 Fix merge conflicts 2022-10-26 16:36:51 +02:00
Florian Renaud cb5fc75c5d GetOngoingVoiceBroadcastsUseCase: Return empty list if there is no session 2022-10-26 16:08:03 +02:00
Florian Renaud c20f6fe326 GetOngoingVoiceBroadcastsUseCase: Remove debug logs 2022-10-26 16:07:38 +02:00
Florian Renaud 6ee77ad101
Merge pull request #7450 from vector-im/feature/fre/voice_broadcast_stop_on_app_restart
Voice Broadcast - Stop recording on app restart
2022-10-26 15:49:32 +02:00
Jorge Martin Espinosa d242ab049b
[Rich text editor] Implement full screen editor mode (simple approach) (#7436)
* Rich text editor: implement full screen editor mode using ConstraintSets

* Add back press handler

* Change ToggleFullScreen to SetFullScreen, fix rebase issues

* Add warning to fragment_timeline* files
2022-10-26 15:15:48 +02:00
Florian Renaud 0cc2a477b4 Mockk GetOngoingVoiceBroadcastsUseCase and adapt tests 2022-10-26 14:54:55 +02:00
Florian Renaud 23b4f6d42f Inject ActiveSessionHolder in GetOngoingVoiceBroadcastsUseCase 2022-10-26 12:49:51 +02:00
Florian Renaud 443d573205 Remove getOngoingVoiceBroadcasts from VoiceBroadcastHelper 2022-10-26 12:48:32 +02:00
Florian Renaud 5855fe1242 Add StopOngoingVoiceBroadcastUseCase 2022-10-26 12:44:38 +02:00
Florian Renaud 2f14d19130 Fix failing test 2022-10-26 12:44:37 +02:00
Maxime NATUREL e765575cf6 Renaming and creating a fixture method for DeviceFullInfo mocks 2022-10-26 12:22:26 +02:00
Maxime NATUREL db17d02f36 Using host variable to make the code nicer 2022-10-26 12:22:26 +02:00
Maxime NATUREL 3e1c110343 Updating some new string keys to make them more generic 2022-10-26 12:22:26 +02:00
Maxime NATUREL 600f650256 Fixing visibility of the select session action when empty list 2022-10-26 12:22:25 +02:00
Maxime NATUREL b7f9419bd4 Fix usage of @+id in xml file 2022-10-26 12:22:25 +02:00
Maxime NATUREL 2e99d45c82 Adding unit test about select mode 2022-10-26 12:22:25 +02:00
Maxime NATUREL 3bba9dea25 Adding unit test for filter action 2022-10-26 12:22:25 +02:00
Maxime NATUREL 4a8289c6cc Adding first unit test on OtherSessionsViewModel for init of ViewModel 2022-10-26 12:22:25 +02:00
Maxime NATUREL 3390d7fde4 Handling correct UI for selected session 2022-10-26 12:22:25 +02:00
Maxime NATUREL a703b8ae10 Select all/Deselect all actions 2022-10-26 12:22:25 +02:00
Maxime NATUREL 2fc2665ff3 Deselect all sessions when leaving select mode 2022-10-26 12:22:25 +02:00
Maxime NATUREL 5b1bf8a68e Select devices with basic UI for tests 2022-10-26 12:22:25 +02:00
Maxime NATUREL ab2e91ae80 Enable selectMode when long pressing on list item 2022-10-26 12:22:25 +02:00
Maxime NATUREL 2e155b1acc Toggling of selectMode using menu i OtherSessionsFragment 2022-10-26 12:22:25 +02:00
Florian Renaud 65a5ae9d3d
Merge pull request #7449 from vector-im/feature/fre/voice_broadcast_device_id
Voice Broadcast - Do not display the recording tile on the other sessions
2022-10-26 11:54:02 +02:00
Florian Renaud 1554d79f1a Change listeners Map variable to immutable 2022-10-26 10:48:11 +02:00
Florian Renaud 8fe3b5e750 Rename method renderPlayingState to renderRecordingState 2022-10-26 10:46:33 +02:00
Florian Renaud 6091ec4ce3 Fix wrong content description 2022-10-26 10:45:25 +02:00
Florian Renaud ec80adc8aa Rename usecase file 2022-10-26 10:10:56 +02:00
Florian Renaud 47047b2034 move map operator in a new line 2022-10-26 10:00:56 +02:00
Florian Renaud 85bc78bd72 Do not pause already paused voice broadcast 2022-10-26 09:50:58 +02:00
Florian Renaud 6eeb54ae40 Stop ongoing voice broadcast on app restart 2022-10-26 09:46:23 +02:00
ericdecanini 51251c2b2b Merge remote-tracking branch 'origin/develop' into feature/eric/msc3773 2022-10-25 11:56:46 -04:00
Florian Renaud c7c05d1fe6 Add check on deviceId before showing recording tile 2022-10-25 17:54:26 +02:00
Florian Renaud 513097585a Fix kdoc issue 2022-10-25 17:38:05 +02:00
Florian Renaud 649747bbb8 Move voice broadcast item attributes to dedicated class 2022-10-25 16:32:44 +02:00
Florian Renaud f31429cf25 Rename renderLiveIcon method 2022-10-25 16:32:44 +02:00
Florian Renaud 2c144614ca Improve recording state rendering if app has been relaunched 2022-10-25 16:32:44 +02:00