Commit Graph

854 Commits

Author SHA1 Message Date
Doug 882fcab738 Refactoring and tidy up.
Make the preview manager a singleton (passing in the MXSession to functions). Fix tests.

PreviewManager → URLPreviewManager
URLPreviewViewData → URLPreviewData
URLPreviewCache → URLPreviewStore
2021-09-01 12:28:56 +01:00
Doug 4331994d72 Load and store URLPreviewViewData in RoomBubbleCellData.
Implement close button and store the action in Core Data. Hide the preview image view when no image is received. Remove line breaks in description text.
2021-09-01 10:37:37 +01:00
Doug 660b95b20a Add comments about the un-sanitized URL. 2021-08-24 09:42:55 +01:00
Doug dd600e5e7e Add PreviewManger with Core Data cache and a URLPreviewView with a view model.
Changes to RoomDataSource still to come.
2021-08-23 17:56:24 +01:00
Doug eaa853d33f Merge branch 'develop' into doug/888_add_url_previews 2021-08-18 16:47:22 +01:00
Stefan Ceriu c9812a2328 Fixes #4714 - Flickering voice message cells while being sent. 2021-08-18 14:58:32 +03:00
Doug ef92d49456 Merge branch 'develop' into doug/888_add_url_previews 2021-08-17 10:29:30 +01:00
Stefan Ceriu fa9d3eebb6 Fixes #1482 - Popping the user back to the home screen after leaving a room. 2021-08-13 17:57:50 +03:00
ismailgulek f85d8c6db2 Use new strings for ended calls 2021-08-06 16:20:10 +03:00
Stefan Ceriu 7c637939a9 Remove labs setting for voice messages, enable the feature by default. Fixed incorrect ffmpeg arguments. 2021-08-06 14:22:52 +03:00
Stefan Ceriu caab471352 Fixes voice message audio quality. 2021-08-06 14:22:52 +03:00
Stefan Ceriu 79b430b4fa #4655 - Localized lock screen voice message name placeholder. 2021-08-05 16:55:02 +03:00
ismailgulek ac233a3e5b Update Riot/Modules/Room/VoiceMessages/VoiceMessageMediaServiceProvider.swift
Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
2021-08-05 16:55:02 +03:00
ismailgulek a2acdd6f21 Fix room avatar 2021-08-05 16:55:02 +03:00
Stefan Ceriu 59751667db #4656 - Stop recording voice message and go into locked mode when the application becomes inactive. Updated changes.rst. 2021-08-05 16:55:02 +03:00
Stefan Ceriu 949551c8da #4655 - Allowing voice message playback to be controlled from the lock screen or the control center. 2021-08-05 16:55:02 +03:00
ismailgulek 6d117e374d Add strings for incoming calls 2021-08-03 17:07:15 +03:00
ismailgulek 85c8241a54 Adapt string changes & new icons 2021-08-03 17:02:40 +03:00
ismailgulek 0d831c30c9 Update icon color 2021-08-03 17:01:38 +03:00
ismailgulek 4bf9461a2a Remove type and dot labels 2021-08-03 17:01:17 +03:00
Stefan Ceriu 8e23e24173 Voice messages - Updated recorded audio file name. 2021-08-03 14:59:44 +03:00
Stefan Ceriu c78bec9228 Voice messages - Increased recording state microphone icon size. 2021-08-03 14:59:44 +03:00
Stefan Ceriu bd8584f90c #4641 - Voice messages - always access local cache manager state from the internal work queue. 2021-08-03 14:59:44 +03:00
Gil Eluard 9114f46dc2 Merge branch 'develop' into gil/voice_messages_rc 2021-07-29 14:11:49 +02:00
Doug 18d6d1cf98 Only set the voice message toolbar view on RoomInputToolbarView. 2021-07-28 16:40:03 +01:00
Gil Eluard b8c9bcab6c Slide to lock should be more generous #4602
- Distance needed to enter lock mode reduced
2021-07-27 14:55:06 +02:00
Gil Eluard eee56628ce Tapping on waveform in composer glitches UI #4603
- Fixed
2021-07-26 22:19:04 +02:00
Gil Eluard 772450b80e Tap/hold to send voice messages isn't intuitive #4601
- Fixed
2021-07-26 21:59:16 +02:00
David Langley 44668a5def Fix Crash when opening the new Room Notification Settings Screen (Not yet released) (#4599) 2021-07-26 11:39:45 +01:00
manuroe f6483d7262 Merge branch 'develop' into element_4090 2021-07-22 14:16:35 +02:00
Doug 4b31d83c37 Begin adding link detection to RoomBubbleCellData. 2021-07-21 15:14:25 +01:00
Stefan Ceriu fb04d6fb26 Fixes #4583 - Mention user does not work (settings -> members -> select a member -> mention) 2021-07-21 16:20:50 +03:00
Stefan Ceriu 6b1f8f4c30 #4090 - Activating the shared AVAudioSession before recording or playback. 2021-07-19 15:54:14 +03:00
Stefan Ceriu a7d053e97f #4090 - Various tweaks and fixes following code review. Switched back to DateFormatters for formatting durations, sanitising audio player durations and current times. 2021-07-19 15:48:37 +03:00
Stefan Ceriu f19511d372 #4090 - Added voice messages switch to the labs section in settings. 2021-07-16 16:57:29 +03:00
Stefan Ceriu 3176745379 #4090 - Fixed the AttachmentCacheManager's serial nature. 2021-07-16 15:47:56 +03:00
Stefan Ceriu 49e3d0f365 Revert "Revert "#4094 - Reintroduced serial attachment loading processing queue and fixed completionCallback storage so they take the requestedNumberOfSamples into account.""
This reverts commit cf884c6abf0e75f9d2b89a95012bd31d8200ae35.
2021-07-16 13:46:06 +03:00
Stefan Ceriu 2b64a40ed0 Revert "#4094 - Reintroduced serial attachment loading processing queue and fixed completionCallback storage so they take the requestedNumberOfSamples into account."
This reverts commit 9a3d26eae307820bd0fd5b21970f9a34007e64ef.
2021-07-16 13:31:38 +03:00
Stefan Ceriu 9a8d09efb4 #4090 - Switched the sendVoiceMessage method duration parameter to an integer. 2021-07-16 12:49:28 +03:00
Stefan Ceriu f6be61fc70 #4094 - Reintroduced serial attachment loading processing queue and fixed completionCallback storage so they take the requestedNumberOfSamples into account. 2021-07-16 12:05:47 +03:00
Stefan Ceriu 31cfaf1cc0 #4094 - Redrawing waveforms on bound changes. 2021-07-16 09:06:36 +03:00
Stefan Ceriu e3a025cfe0 #4094 - Fixed flickering elapsed time labels and other tweaks. 2021-07-14 14:40:54 +03:00
Doug d181065321 Use the layer's corner radius rather than a custom mask.
This will ensure the mask bounds always match the view's size.
2021-07-14 10:37:54 +01:00
Doug c7176c7423 Always update the path of the attachmentView's mask to handle reuse. 2021-07-14 10:15:50 +01:00
Stefan Ceriu bcba0d2338 #4094 - Switched back to multiple audio player instances (1 per event identifier), strongly retaining the currenty playing one and unloading all stopped ones. Various other improvements and bug fixes. 2021-07-14 10:26:21 +03:00
Stefan Ceriu 513c950e0d Revert "Revert "#4545 - Switch back to using multiple audio player instances, allow pausing when starting a new player.""
This reverts commit 1a5197c69a9caa0e961fd58939a76e4c4349468e.
2021-07-13 16:13:39 +03:00
Stefan Ceriu 134250d486 #4094 - Sending voice message recording length and waveform samples. 2021-07-13 16:03:20 +03:00
Stefan Ceriu 844d946432 Merge branch 'develop' into element_4090
# Conflicts:
#	CHANGES.rst
2021-07-13 11:30:16 +03:00
Stefan Ceriu 0d315dbe0f Revert "#4545 - Switch back to using multiple audio player instances, allow pausing when starting a new player."
This reverts commit 1a2a434d9dabf08caecdd9d6833abf02e2e77365.
2021-07-13 08:04:50 +03:00
Doug cec15f8f1d Merge branch 'develop' into doug/fix_warnings
# Conflicts:
#	Riot/Modules/Room/RoomInfo/RoomInfoList/RoomInfoListViewController.swift
2021-07-12 17:54:34 +01:00