Commit Graph

1150 Commits

Author SHA1 Message Date
Stefan Ceriu 6c9ed73e67 Fixes #2001 - Simplify room and user avatar preview screens 2023-11-16 16:23:59 +02:00
Mauro 003b494c90 Artificial delay when a message fails to send (#2091) 2023-11-16 10:09:29 +01:00
Alfonso Grillo 9f1092b0b6 Reply to a poll (#2087)
* Refactor TimelineItemReplyDetails for polls

* Fix reply for polls

* Update reply details factory

* Revert Poll Hashable conformance

* PR comments
2023-11-15 15:57:34 +00:00
Doug 0b9da83470 Show the lock screen placeholder on willResignActive. (#2086) 2023-11-15 15:31:35 +00:00
Mauro 342feb4113 Added a disclaimer in Notification Settings for "Mentions Only" (#2081) 2023-11-15 14:57:17 +00:00
Stefan Ceriu eb6f7e0409 Fixes #2083 - Expose options for overriding the system appearance in the advanced settings menu 2023-11-15 14:23:11 +02:00
Doug 4b3a373782 Use more Compound icons (part 2!) (#2082)
* Use Compound icons in ListRow.

* Add CompoundIcon(asset:) convenience initialiser.
2023-11-15 09:54:43 +00:00
Doug 2c1e61a1bc Add SwiftLint rule to enforce stack spacing. (#2080)
Xcode 15 changes the default behaviour and given we're always working from designs, we shouldn't rely on it for our layout.
2023-11-14 12:38:38 +00:00
Alfonso Grillo 752ad66397 Add scaledFrame/scaledPadding APIs (#2079)
* Add scaled frame and padding modifiers

* Refactor AppLockScreen

* Refactor FormattingToolbar

* Refactor RoomAttachmentPicker

* Refactor ComposerToolbar

* Refactor VoiceMessageRecordingButton

* More refactors

* Refine ScaledPaddingModifier

* Cleanup

* Fix preview tests

* Fix preview test

* Use CompoundIcon for custom image

* Add .scaledFrame(size:) overload

* Set fallback style to .body
2023-11-14 12:20:34 +01:00
Doug 4257c20bc9 First round of icon updates. (#2076)
Update Compound too.
2023-11-13 16:44:29 +00:00
Nicolas Mauri acd079199a Display voice message progress cursor if progress is greater than zero (#2077) 2023-11-13 16:41:38 +01:00
Stefan Ceriu bc46c48b2e Update room summary provider mock room details and snapshots 2023-11-13 17:02:02 +02:00
Stefan Ceriu 5c4e0bd76d Display whether a call is ongoing in any particular room on the room list 2023-11-13 17:02:02 +02:00
Stefan Ceriu 2e1b4cb80b Fixes #2058 - Prevent QuickLook from breaking media uploading on Mac, replace the preview with a plain filename label 2023-11-13 13:52:55 +02:00
Stefan Ceriu 0e6e8a5892 Fix drag and dropping files onto the timeline on Mac 2023-11-13 13:52:55 +02:00
Stefan Ceriu a8be8f839b Fix new swiftformat warnings: convert types used for hosting only static members into enums. 2023-11-13 13:47:14 +02:00
Stefan Ceriu 259baeaf99 Fixes #1619 - Remove push notification registration on logout 2023-11-13 13:47:14 +02:00
Stefan Ceriu 4a56796d45 Fixes 2070 - Prevent crashes when inserting mention pills in the composers on Mac 2023-11-13 13:32:38 +02:00
Doug b4ec04ec26 Update the welcome screen with the latest designs. (#2067) 2023-11-13 09:42:43 +00:00
Doug 61af01e6fb Don't show the call button on macOS (#2064)
Calls don't work in the web view on macOS.
2023-11-13 07:32:42 +00:00
Doug a2c2f872cd Fix for UI tests now showing the status bar. (#2065) 2023-11-13 07:30:41 +00:00
Doug b5cc2cbf61 Fix a regression where the forced logout indicator was presented on the hidden overlay window. (#2063) 2023-11-10 17:21:02 +00:00
Stefan Ceriu 5adbb3789e Fixes #660 - Expose message actions to voice over rotor (#2061)
* Fixes #660 - Expose message actions to voice over rotor

* Expose "message actions" accessibility action on polls and voice messages too.
2023-11-10 18:32:15 +02:00
Doug 37d88e622c Add UI tests for AppLockFlowCoordinator. (#2055)
* Add UITests for the App Lock flow.

* Add Notification Signal

Fix unwanted imports in UITests.
2023-11-10 15:38:54 +00:00
Nicolas Mauri da831f6725 New voice message recording mode (#2051)
* Lock voice message recording

* Use the VoiceMessageCache to store the recording file

* Rework on some composer toolbar buttons

* Update accessibility labels for voice message recording button

* PreviewTests
2023-11-10 15:32:22 +00:00
Mauro 5a0dab1ce8 Better compiler flag for AppSettings (#2057) 2023-11-10 11:29:24 +00:00
Stefan Ceriu 132a668409 Fix alerts presented by the user indicator controller not being inter… (#2056)
* Fix alerts presented by the user indicator controller not being interactive

* Add back attribution
2023-11-10 12:57:19 +02:00
Mauro a4bc7b8e36 Custom copy for notifications that contain mentions (#2050) 2023-11-09 18:12:11 +00:00
Stefan Ceriu 019ca625ab Group together voice message and poll actions (#2054)
* Group together voice message and poll actions

* Extract nested switches into separate methods
2023-11-09 19:16:42 +02:00
Stefan Ceriu 4b26a798dc Have the UserIndicatorController use a separate window, switch to using one single instance throughout the application 2023-11-09 16:18:11 +02:00
Doug 1102beb3dd Add UI tests for mandatory PIN setup flow. (#2049) 2023-11-09 09:18:18 +00:00
Doug 6ee3a7f99f Fixes the keyboard being shown when opening an Element call link. (#2048) 2023-11-09 08:30:45 +00:00
Stefan Ceriu abe2080ee2 Extract room screen action handling into separate component (#2045)
* Extract room screen action handling into separate component

* Fix tracing configuration unit tests

* Move the custom reactionsCollapsedBinding to the TimelineReactionsView

* Move voice message playback handling from the timelineController to the room view model

* Reorder methods

* Remove the need for a media player provider in the timeline controller

* Move room attachments opening to the view model, remove the need for a media provider in the timeline controller

* Rename RoomScreenActionsHandler -> RoomScreenInteractionHandler

* Move message sending retry and cancellation to the timeline controller.

* Move audio playback, attachment loading and  user tapping handling into the InteractionHandler

* Fix unit tests

* Switch back swiftlint file_length rule error to 1000 lines
2023-11-08 18:31:39 +02:00
Doug 07313926c9 Add UI tests for optional app lock setup. (#2046) 2023-11-08 15:33:40 +00:00
Nicolas Mauri e04a55eaef Voice message recording enhancements (#2042)
* Use Combine to report AudioRecorder state changes

* AudioRecorder is now using AVAudioEngine instead of AVAudioRecorder

* Stop recording when audio configuration changes

* AudioRecorder error handling

* UnitTests

* Use Accelerate to calculate RMS
2023-11-08 10:19:28 +01:00
Stefan Ceriu 14e0eba914 Bump the log level for matrix_sdk_crypto and matrix_sdk_http_client to debug 2023-11-08 11:18:03 +02:00
Stefan Ceriu 8d20cbfc68 Fixes #2040 - Prevent the room list from staying empty after cancelli… (#2041)
* Fixes #2040 - Prevent the room list from staying empty after cancelling a search

* Address PR comments, simplify implementation
2023-11-07 17:54:04 +02:00
Stefan Ceriu 5dcb24add7 Expose Element Call settings in the developer options. Start using th… (#2039)
* Expose Element Call settings in the developer options. Start using the encryption widget parameter.

* Remove the Element Call feature flag
2023-11-07 16:12:03 +02:00
Doug 344fed4ee6 Don't allow the Placeholder Screen layout to be influenced by the keyboard (#2034) 2023-11-07 11:16:02 +01:00
Doug 6adedaf267 Fix an inconsistency in the App Lock screen's background colour. (#2035) 2023-11-07 10:49:19 +01:00
Alfonso Grillo 30e8753663 Improve TimelineAccessibilityModifier 2023-11-07 10:32:14 +01:00
Alfonso Grillo f7f3404312 Add TimelineAccessibilityModifier 2023-11-07 10:32:14 +01:00
Alfonso Grillo 6ad7dc7641 Delete .combine accessibility for bubble style 2023-11-07 10:32:14 +01:00
Alfonso Grillo 1780b58e58 Fix accessibility label for VoiceMessageButton 2023-11-07 10:32:14 +01:00
Stefan Ceriu 5823af6a91 Secure backup fixes (#2037)
* Fix logout alert title and message

* Disable auto correction and capitalization on the recovery confirmation screen

* Allow scrolling in the key verification screen for when the key needs to be confirmed and the keyboard is up.

* Address PR comments
2023-11-07 09:23:15 +02:00
Doug 5d2215f130 Use the custom log level inside the NSE too. (#2020) 2023-11-04 08:36:49 +00:00
Mauro ce72a9b5f2 Fix NSE Leak (#2022) 2023-11-03 20:30:58 +00:00
Alfonso Grillo 4985d410b3 Add voice message analytics 2023-11-03 12:44:52 +01:00
Alfonso Grillo 530985e674 Add deferred spinner for voice messages (#2018)
* Add  delayedLoaderPlaybackState

* Add more tests

* Fix Xcode 14 build error

* Refactor  delayedLoaderPlaybackState -> playerButtonPlaybackState

* Fix runtime issue
2023-11-03 10:39:22 +00:00
Doug b10d534c94 Debounce PIN entry to show the last digit before submitting. (#2017) 2023-11-03 07:31:01 +00:00