Commit graph

823 commits

Author SHA1 Message Date
yostyle
b1cde5f719 Display live voice broadcast 2022-10-20 16:48:20 +02:00
manuroe
0690f9ac65 VB: Remove a done TODO 2022-10-20 16:10:29 +02:00
ismailgulek
a30cc92e24
Fix infinite layout loops on timeline (#6942)
* Remove `forceZeroSageAreaInsets` from `VectorHostingController`

* Fix layout issues when adding hosting views into the content view

* Use the new api when adding views into the content

* Add changelog
2022-10-20 15:55:07 +03:00
manuroe
caea678d74 VB: Own code review 2022-10-20 13:39:27 +02:00
manuroe
b4f6f74d5e VB: Support live playback
from the beginning or with go live
2022-10-20 12:25:40 +02:00
manuroe
83eff0e9ad VB: Started live playback 2022-10-20 11:33:17 +02:00
manuroe
93611e1e8b VB: Introduce VoiceBroadcastState for the UI 2022-10-20 10:37:35 +02:00
Velin92
00cf240388
Merge pull request #6938 from vector-im/mauroromito/6935_wysiwyg_placeholder
Rich Text Composer Placeholder Text
2022-10-20 10:04:33 +02:00
manuroe
4990653de3 Merge remote-tracking branch 'origin/yostyle/voice_broadcast_playing' into yostyle/voice_broadcast_playing 2022-10-20 09:48:50 +02:00
manuroe
43b2e489b3 VB: Manage playback completion properly
Make VoiceManager audioPlayerDidFinishPlaying called when the last item of the playlist has been played
2022-10-20 09:38:14 +02:00
yostyle
832505fafa Remove matrixsdk import 2022-10-20 09:18:32 +02:00
yostyle
43b7c30737 Add voice broadcast error view 2022-10-20 02:36:27 +02:00
yostyle
04de23fce7 Fixes after rebase on develop
Update voice broadcast playback UI
2022-10-20 02:01:01 +02:00
manuroe
565a28fb82 VB: Support multi chunks playback 2022-10-20 01:45:57 +02:00
manuroe
b6b5168089 VB: Make the view model aware of every chunk new coming
this reactive approach will help to cache and reorder them by sequence
2022-10-20 01:45:57 +02:00
manuroe
f482d1a832 Expose better broadcast details to the view
Starting from the sender name but we can add more things. This is up to the design expectation
2022-10-20 01:45:57 +02:00
manuroe
e202561734 VB: Improve playback states 2022-10-20 01:45:57 +02:00
manuroe
d04c2ea704 VB: Playback starts to work but only the first chunk if it is ogg 2022-10-20 01:45:57 +02:00
manuroe
7ae507fc09 VB: Move view logic to the view model 2022-10-20 01:45:57 +02:00
manuroe
2e35895576 Renamed back to VoiceBroadcastPlaybackCoordinator
The logic will be moved to the view model. This file will just serve the SwiftUI view
2022-10-20 01:45:57 +02:00
manuroe
2f09856fc3 Rename some existing voice broadcast files to VoiceBroadcastPlayback
Record will happen in separate files
2022-10-20 01:45:57 +02:00
manuroe
3d26a113c3 Simplify TimelineVoiceBroadcastDetails struct 2022-10-20 01:45:57 +02:00
manuroe
b8bc97a15e Removed VoiceBroadcastProtocol
We do not need to abstract it
2022-10-20 01:45:57 +02:00
manuroe
9bfd655a5b Rename TimelineVoiceBroadcastCoordinator to controller
It has nothing todo with a coordinator. Start to follow the same naming as VoiceMessage.

Remove SwiftUI VoiceBroadcastChunk to make it build
2022-10-20 01:45:57 +02:00
yostyle
6e828b55d4 Check user id to prevent fake ckunk 2022-10-20 01:45:57 +02:00
yostyle
68adfe32f2 Add chunks in TimelineVoiceBroadcastDetails 2022-10-20 01:45:57 +02:00
yostyle
73fa0f22b6 Add some comments 2022-10-20 01:45:57 +02:00
yostyle
99b50d2c2a Init voice broadcast playing service 2022-10-20 01:45:57 +02:00
Giom Foret
080acb3628 Display info dialogs when we prevent the user from starting a new voice broadcast
- Update the existing implementation used to start/stop a voice broadcast in order to handle the different cases where voice broadcast is denied
- Add the optional Voice broadcast action to the new wysiwyg composer
2022-10-20 00:38:42 +02:00
manuroe
e92bb7926e VB: Support multi chunks playback 2022-10-19 23:09:48 +02:00
manuroe
85f2076be8 VB: Make the view model aware of every chunk new coming
this reactive approach will help to cache and reorder them by sequence
2022-10-19 17:28:08 +02:00
Mauro Romito
656510946a added a simple test 2022-10-19 16:40:07 +02:00
manuroe
261f477127 Expose better broadcast details to the view
Starting from the sender name but we can add more things. This is up to the design expectation
2022-10-19 15:32:03 +02:00
Mauro Romito
0f6d6f1cf5 added placeholder to the viewModel 2022-10-19 15:08:12 +02:00
manuroe
4757cf5a67 VB: Improve playback states 2022-10-19 15:01:43 +02:00
manuroe
c90b0459ab VB: Playback starts to work but only the first chunk if it is ogg 2022-10-19 14:23:09 +02:00
manuroe
1c048b5901 VB: Move view logic to the view model 2022-10-19 13:00:35 +02:00
manuroe
0dcc39037c Renamed back to VoiceBroadcastPlaybackCoordinator
The logic will be moved to the view model. This file will just serve the SwiftUI view
2022-10-19 10:20:38 +02:00
manuroe
c96485a46f Rename some existing voice broadcast files to VoiceBroadcastPlayback
Record will happen in separate files
2022-10-19 10:13:07 +02:00
manuroe
4efcd62519 Simplify TimelineVoiceBroadcastDetails struct 2022-10-19 09:42:00 +02:00
manuroe
1c4c3033a0 Removed VoiceBroadcastProtocol
We do not need to abstract it
2022-10-19 09:38:36 +02:00
manuroe
195c6b2e3a Rename TimelineVoiceBroadcastCoordinator to controller
It has nothing todo with a coordinator. Start to follow the same naming as VoiceMessage.

Remove SwiftUI VoiceBroadcastChunk to make it build
2022-10-19 09:34:58 +02:00
yostyle
318f40817e Check user id to prevent fake ckunk 2022-10-19 09:09:57 +02:00
yostyle
fc7d37a273 Add chunks in TimelineVoiceBroadcastDetails 2022-10-18 23:36:21 +02:00
yostyle
fb41abbcb0 Add some comments 2022-10-18 17:32:40 +02:00
yostyle
7d94e98140 Init voice broadcast playing service 2022-10-18 16:36:02 +02:00
Stefan Ceriu
a7931e8406 Check and mark the received MSK as trusted before locally verifying the existing device 2022-10-18 12:15:47 +03:00
Stefan Ceriu
b240cfb5e3 Fix incorrect Task creation for processing scanned qr codes 2022-10-18 12:13:14 +03:00
Hugh Nimmo-Smith
e6d61c826b Use unstable prefixes for QR code login 2022-10-18 09:13:21 +03:00
Velin92
0f631aa123
Merge pull request #6901 from vector-im/mauroromito/wysiwyg_toolbar_design_improvements
WYSIWYG design improvements
2022-10-17 21:10:44 +02:00
Alfonso Grillo
8e7a08b2e6
Merge pull request #6898 from vector-im/alfogrillo/fix_session_details
Filter out application section in session details (PSG-898)
2022-10-17 19:49:47 +02:00
Mauro Romito
9338790e63 spacing improved further 2022-10-17 19:25:17 +02:00
Yoan Pintas
c8ceb52287
[Voice Broadcast] Aggregate the chunks of voice messages in room timeline (#6891) 2022-10-17 18:23:47 +02:00
Mauro Romito
a3a7c5b1d6 Merge branch 'develop' into mauroromito/wysiwyg_toolbar_design_improvements
# Conflicts:
#	Riot.xcworkspace/xcshareddata/swiftpm/Package.resolved
#	project.yml
2022-10-17 18:13:12 +02:00
Mauro Romito
453456d89a updated the swiftpm 2022-10-17 18:11:19 +02:00
Mauro Romito
379e9ee9b3 designs are perfect now 2022-10-17 17:03:43 +02:00
Mauro Romito
06d54913d6 design improvements! 2022-10-17 16:39:42 +02:00
David Langley
5f6baa73e2
Merge pull request #6897 from vector-im/langleyd/6896_focus_taps_inside_border
Fix tap area being too small on composer
2022-10-17 15:02:09 +01:00
Velin92
3000112ae2
Merge pull request #6895 from vector-im/mauroromito/wysiwyg_bottom_action_sheet_design_improvements
wysiwyg bottom action sheet design improvements
2022-10-17 15:43:19 +02:00
Alfonso Grillo
72ea4c6f33 Filter out application section if needed 2022-10-17 15:38:54 +02:00
David Langley
01cd42a701 Update Wysiwyg dep and use new focused param on WysiwygComposerView 2022-10-17 14:10:02 +01:00
Mauro Romito
d59a6ecf54 better padding 2022-10-17 13:47:33 +02:00
Mauro Romito
36f3584ffc Revert "ios 16 custom detent"
This reverts commit 758dacc00e.
2022-10-17 13:46:13 +02:00
Mauro Romito
758dacc00e ios 16 custom detent 2022-10-17 12:35:47 +02:00
Mauro Romito
d3f106b899 the right corner radius value 2022-10-17 11:22:16 +02:00
Aleksandrs Proskurins
bd9d6cf691
Merge pull request #6882 from vector-im/aleksandrs/6881_identify_inactive_sessions
Device manager: Identify inactive sessions.
2022-10-17 11:38:48 +03:00
Mauro Romito
d5d3ad1c34 added the grabber and the corner radius 2022-10-14 18:50:43 +02:00
Mauro Romito
34404156bb updated UI tests 2022-10-14 13:04:32 +02:00
Mauro Romito
295bf5c420 0.15 animation 2022-10-14 12:53:33 +02:00
Mauro Romito
44297dd89d opacity transition implemented 2022-10-14 12:49:13 +02:00
Velin92
928b5f3592
Merge pull request #6880 from vector-im/mauroromito/wysiwyg_custom_tint
WYSIWYG: Custom Tint + FIX blinking text when typing very fast in dark mode
2022-10-14 11:47:57 +02:00
Aleksandrs Proskurins
fb7a3683fc Identify inactive sessions 2022-10-14 12:16:12 +03:00
Mauro Romito
91c9c78b97 custom tint + blinking dark theme text color issue fix 2022-10-14 10:45:24 +02:00
Aleksandrs Proskurins
b4af93c22b
Merge pull request #6878 from vector-im/aleksandrs/6877_navigation_fix
Device Manager: Navigating to session overview goes to session details
2022-10-14 11:01:42 +03:00
David Langley
597f0950a6
Merge pull request #6875 from vector-im/langleyd/6873_accessibility_labels
WYSIWYG: Accessibility labels
2022-10-14 08:49:20 +01:00
Aleksandrs Proskurins
10862996f9 Navigating to session overview goes to session details 2022-10-14 09:21:17 +03:00
Stefan Ceriu
83c9e617ae Login against the homeserver provided through the QR code 2022-10-13 20:49:32 +03:00
Stefan Ceriu
36e4d3be2e Check login intents match between QR code and current flow 2022-10-13 20:49:32 +03:00
Stefan Ceriu
8bf20831b1 Remove unnecessary private key requests as it already happens automatically when marking the existing device as verified 2022-10-13 20:49:32 +03:00
Stefan Ceriu
94f5dc477b Fixed various SwiftFormat warnings 2022-10-13 20:49:32 +03:00
Stefan Ceriu
881662b088 Added E2EE support on sessions created through QR code login 2022-10-13 20:49:32 +03:00
David Langley
3335da8b04 Additional translations and accessiblity labels 2022-10-13 17:03:33 +01:00
David Langley
1f5830821c
Merge pull request #6831 from vector-im/langleyd/6830_wysiwyg_core_formatting
Wysiwyg: Core Formatting
2022-10-13 16:03:27 +01:00
Doug
b6e47f07a8
Add a SignOutFlowPresenter. (#6854)
Used in AllChats, UserSessions and Settings.
(TabBarCoordinator is unnecessary as signout will be removed from there).
2022-10-13 14:36:30 +01:00
David Langley
11b8d2ed32 Merge branch 'langleyd/6830_wysiwyg_core_formatting' of github.com:vector-im/element-ios into langleyd/6830_wysiwyg_core_formatting 2022-10-13 12:19:55 +01:00
Mauro Romito
c66b792b82 improved UI tests 2022-10-13 13:06:20 +02:00
Mauro Romito
520ee3b2e9 unit tests improved! 2022-10-13 13:01:29 +02:00
David Langley
858744b643 more comment updates 2022-10-13 11:46:00 +01:00
David Langley
6fa409c32d Updates based on comments. 2022-10-13 11:12:14 +01:00
Aleksandrs Proskurins
e52ccb7650 Formating fixes 2022-10-13 10:57:45 +03:00
Aleksandrs Proskurins
bc26fe7e15 Correct label for other verified session 2022-10-13 10:51:58 +03:00
Aleksandrs Proskurins
9e19986df6 Merge branch 'develop' into aleksandrs/6864_fixes_from_testing
# Conflicts:
#	Riot/Assets/en.lproj/Vector.strings
#	Riot/Generated/Strings.swift
#	RiotSwiftUI/Modules/UserSessions/Common/View/UserSessionCardViewData.swift
2022-10-13 10:42:53 +03:00
Aleksandrs Proskurins
1fb3056bdf Correct verificationStatusAdditionalInfoText for other session 2022-10-13 09:46:11 +03:00
Mauro Romito
73fc05eb07 ui test improvements 2022-10-13 03:10:25 +02:00
Mauro Romito
72a61a3e77 ui tests fix on ci 2022-10-13 02:28:56 +02:00
Mauro Romito
100d714cb3 ui test should work now 2022-10-13 02:16:02 +02:00
Mauro Romito
0e42405129 ui tests should now work on CI 2022-10-13 01:27:14 +02:00
Mauro Romito
a716fa0f73 code improvement 2022-10-13 00:23:30 +02:00
Mauro Romito
9e9a76dca2 code improvement 2022-10-13 00:21:03 +02:00
Mauro Romito
cd5d9cf294 Tests completed! The only doubt I have left is about testing the string content considering the localisations in tests 2022-10-12 20:06:15 +02:00