Doug
c56a98033d
Revert "Show room member role changes in the timeline." ( #2573 )
...
Until we can handle filtering Rust side, this causes more issues than its worth.
2024-03-14 11:01:23 +00:00
Doug
1c914c314f
More Moderation tweaks ( #2566 )
...
* Show room member role changes in the timeline.
* Fix a bug in room flow coordinator.
* Tidy up roles and permissions flow.
* Refresh the power levels in the room details screen.
* Automatically update permissions after saving.
* Remove extra button.
* Add a short delay to the roles and permissions screen snapshots.
The permissions rows are now in a loading state initially.
2024-03-13 15:36:38 +00:00
Stefan Ceriu
063b3732b1
Fixes #1837 - Add support for m.call.invite events in the timeline, room list and notifications
2024-03-07 18:23:22 +02:00
Doug
7f3451216d
Update the SDK. ( #2529 )
2024-03-05 16:31:27 +00:00
Stefan Ceriu
e1d1e99ad4
Prevent crashes when computing aspect ratios on zero media width or height
2024-02-08 17:42:55 +02:00
Mauro
faeab892a9
Filtered out unwanted state events for DMs ( #2361 )
2024-01-19 18:58:29 +01:00
Stefan Ceriu
b5be6639d1
Fix various small warnings
2024-01-08 12:04:29 +02:00
Stefan Ceriu
2a33ee1f63
Make timeline reactions and reaction senders identifiable
2024-01-08 12:04:29 +02:00
Mauro
09fb5461e6
Removing dead code part 3 ( #2264 )
2023-12-19 12:12:16 +01:00
Mauro
123164f398
Removing dead code part 2 ( #2235 )
...
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com >
2023-12-15 20:16:16 +01:00
Mauro
d99d26fcdc
Removing Dead Code part 1 ( #2234 )
2023-12-13 09:51:57 +01:00
Alfonso Grillo
058429b637
Update rust sdk to 0.0.6-november23 ( #2159 )
...
* Update rust sdk to 0.0.6-november23
* Delete unused property
2023-11-23 16:26:44 +00:00
Alfonso Grillo
e583f52c65
Edit poll UX ( #2151 )
...
* Add edit poll on room proxy
* Add CreatePollMode
* Add “edit poll” presentation flow
* Add delete poll section
* Inject editing poll
* Add submit action
* Refactor validation logic
* Add edit/delete actions
* Fix bubble timestamp for polls
* Update localisations
* Refactor CreatePoll -> PollForm
* Refactor tests
* Update rust sdk to 0.0.5-november23
* Update confirmation alerts
* Add edit support in TimelineItem menu
* Refactor a11y id
* Cleanup
* Fix failing tests
* Add tests
* Refine isEditable workaround
* Refactor timestamp in TimelineItemBubbledStylerView
2023-11-23 11:19:15 +00: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
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
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
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
Alfonso Grillo
4af8ef2a5f
Voice message UI polish (part 2) ( #1995 )
...
* Update compund
* Fix create poll screen bin button style
* Fix timeline menu description for voice messages
* Fix bin button in ComposerToolbar
* Add VoiceMessageButtonStyle
* Update compound & fix breaking changes
* Fix voice message bin size
* Refactor VoiceMessageRecordingButton
* Fix preview tests
2023-11-01 10:03:35 +01:00
Alfonso Grillo
7ba2e4f9f5
Set voice messages max width ( #1980 )
2023-10-30 12:09:10 +01:00
Alfonso Grillo
5439b650a0
Remove forward action for polls ( #1973 )
2023-10-27 20:35:18 +00:00
Nicolas Mauri
a32a7c8f2c
Fix: Keep the progress indicator visible after pausing or scrubbing a voice message. ( #1969 )
2023-10-27 15:24:22 +00:00
Alfonso Grillo
acfc564490
Remove feature flag for voice messages ( #1964 )
...
* Delete voice messages feature flag
* Fix preview tests
* Update snapshots
2023-10-27 13:45:15 +02:00
Alfonso Grillo
adfe855b99
Refactor voice messages touch interaction ( #1970 )
...
* Remove enable/disable long press actions
* Working poc
* Refactor interaction in VoiceMessageRoomPlaybackView
* Cleanup DateFormatter
* Fix VoiceMessagePreviewComposer
* Cleanup
* Delete WaveformViewDragState
* Refactor WaveformCursorView
* Cleanup
* Add WaveformInteractionModifier
* Add selection hapitc feedback
* Fix ComposerToolbar ZStack alignment
* Refine cursor size
* Remove haptic feedback
* Fix preview test
* Delete longPressDisabledItemID
* Remove progress animation
* Project file
2023-10-27 10:08:30 +00:00
Alfonso Grillo
a1bbc7ecce
Voice messages UI polish ( #1959 )
...
* Add VoiceMessageButton
* Add VoiceMessageRecordBadge
* Make composer transition faster
* Use VoiceMessageButton
* Adjust recording badge
* Update localisation key
* Remove animation in VoiceMessageButton
* Fix preview tests
* Cleanup
* Update preview tests
2023-10-26 09:05:42 +00:00
Nicolas Mauri
30b18031a0
Add a progress indicator to voice message preview ( #1956 )
2023-10-25 10:27:00 +00:00
Stefan Ceriu
37f1a79a11
Key backup returns ( #1951 )
...
* Converge on UserSessionFlowCoordinator logout confirmation
* Add logout confirmation screen strings to untranslated.
* Fix chat backup learn more URl fragment.
* Implement logout flows that check recovery and key backup for the last session
* Move logout confirmation screen strings to localazy
* Change encrypted timeline item copy to "Waiting for decryption key"
* Use different encrypted history banner based on key backup states
* Introduce a SettingsFlowCoordinator and implement navigation directly to the secure backup screen from the logout flows.
* Fix **mocked** secure backup controller flows
* Simplify encrypted history banner logic
* Address PR comments
2023-10-24 18:38:41 +03:00
Nicolas Mauri
2f57fbc77d
Allow to record a voice message ( #1926 )
2023-10-23 15:47:36 +00:00
Alfonso Grillo
30e6d823c5
Fix EstimatedWaveform amplitudes ( #1939 )
...
* Fix range
* Add data range & cleanup
* Fix preview tests
2023-10-23 14:42:56 +00:00
Alfonso Grillo
fbcf037240
Voice message waveform from audio files ( #1919 )
...
* Add DSWaveformImage
* Add estimated waveform
* Add progress mask modifier
* Add real waveform
* Fix cursor
* Fix scale factor
* Refine ProgressMaskModifier
* Refine waveform logic
* Add docs
* Add waveform placeholder
2023-10-19 11:01:45 +02:00
Nicolas Mauri
9ab3b20a49
Add UI to record a voice message from the composer toolbar ( #1892 )
2023-10-16 15:18:51 +00:00
Nicolas Mauri
39e3328b02
Fix: the duration of voice messages is now expressed in milliseconds ( #1904 )
2023-10-16 08:59:45 +00:00
Mauro
8e03b89641
Pills performance improvements ( #1891 )
...
* big performance improvement for pills
* small overall performance improvement
* code improvements
2023-10-13 14:40:18 +02:00
Alfonso Grillo
f97a7c8cce
Update Matrix SDK to 1.1.23 ( #1890 )
2023-10-13 12:31:22 +00:00
Alfonso Grillo
293834cf94
Remove ‘copy’ action for "media like" types ( #1889 )
...
* Remove ‘copy’ action when useless
* Delete unused property
2023-10-13 10:52:30 +00:00
Nicolas Mauri
b35bee5d8f
Improved display of voice messages in the timeline ( #1873 )
2023-10-10 16:20:31 +00:00
Nicolas Mauri
82abd0aaf3
Add voice message playback from the timeline ( #1844 )
2023-10-04 16:32:45 +00:00
Matthew Hodgson
68ec7bbc9e
Implement emotes (/me) ( #1841 )
...
* implement emotes (/me)
requires matthew/emotes branch of matrix-rust-sdk
* changelog + whitespace
* remove apparently superfluous swiftlint
* fix constness
* remove inout params and incorporate review
* switch to new api based on sdk PR feedback
* Bump the RustSDK to v1.1.21
* Address PR comments
---------
Co-authored-by: Stefan Ceriu <stefan.ceriu@gmail.com >
2023-10-03 16:17:03 +03:00
Stefan Ceriu
61968cb3fb
Add support for replying to events different than room messages
2023-09-27 08:28:46 +03:00
Nicolas Mauri
e9ce24fd9c
Improved rendering of voice messages ( #1782 )
2023-09-22 16:53:17 +02:00
Alfonso Grillo
37afc8c253
Add polls "creator view" ( #1765 )
...
* Add end button in PollRoomTimelineView
* Add creator logic
* Refine PollRoomTimelineView previews
* Add UI tests
* Update preview tests
2023-09-21 14:59:17 +00:00
Nicolas Mauri
b8e5611c00
Add voice message rendering to the timeline ( #1776 )
2023-09-21 14:36:21 +00:00
Alfonso Grillo
eba3e25373
Improve message edit with RTE ( #1742 )
...
* Improv edit for RTE
* Refine code block style in composer
* Update matrix-wysiwyg-composer-swift to 2.13.0
* Remove workaround
* Update ElementX/Sources/Services/Timeline/TimelineItems/Items/Messages/TextRoomTimelineItemContent.swift
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com >
* Refactor rawFormattedBody -> formattedBodyHTMLString
---------
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com >
2023-09-21 13:45:43 +00:00
Stefan Ceriu
501c3aed23
Disable reply actions for local echoes
2023-09-19 17:39:04 +03:00
Mauro
7642508135
Thread Decorator ( #1686 )
...
* just added the isThreaded property to message based events
* done but I should add a bunch of tests for images and videos and locations
* handling for image and videos, but locations might need to be double checked
* code improvement
* better tests and removed code that is not used, we need to fix first the appearence of replies
* bubble style is solved, we now need plain style
* also added plain style
* better handling for bubble style
* rounded corner only for bubbles in location
* fix for wrong aspect ratio in replies
* all changes done
* better testing
* swift format
* changelog
* PR comments and rebase.
* Simplify corner radius on location timeline view.
---------
Co-authored-by: Doug <douglase@element.io >
2023-09-15 11:58:30 +01:00
Stefan Ceriu
ee4040141d
Top level deeplink handling ( #1660 )
...
* Handle link opening on the top most levels and prepare for percolating them throughout the app
* Add support for a custom app scheme
* Add specific AppRoute parsers.
* Integrate custom scheme in the AppRouteURLParser
* Switch to `element://call` and cleanup route parsing
2023-09-11 12:31:31 +03:00
Alfonso Grillo
9b313b814e
Polls refinements ( #1608 )
...
* Refine focus behavior
* Begin draft mode
* Add alert on poll form
* Add poll ended asset
* Add fallback text for ended poll event
* Cleanup
* Fix assets
* Remove poll feature flags
* Fix UI tests
* Fix ui tests
* Refine discard poll alert
* Remove unused import
* Rename hasDraftContent -> hasContent
* Restore createPoll-2 ref screenshots
2023-09-01 15:55:11 +02:00
Alfonso Grillo
f0fad25d09
Vote on a poll and end a poll ( #1597 )
...
* Fix project file
* Add vote and end poll actions
* Handle redaction
* Fix local echo behavior
* Cleanup
* Fix UI tests
* Add localisation
* Cleanup
* Fix end poll action style
2023-08-31 12:04:25 +02:00
Alfonso Grillo
a2623dd254
Create poll UX ( #1571 )
...
* Add poll attachment button
* Add poll creation feature flag
* Setup navigation to CreatePollScreen
* Add create/cancel actions
* Add create poll screen ui skeleton
* Add bindings in CreatePollScreen
* Add logics in CreatePollScreen
* Cleanup code
* Fix option deletion crash
* Fix conflicts
* Add create poll logic
* Add localisations
* Fix test build errors
* Fix crash
* Add UTs
* Add accessibility IDs
* Add ui tests
* Add 240 char limit
* Fix addOption hide behavior
* Add maxNumberOfOptions
* Cleanup code
* Move delete workaround in the view model
* Use compound delete icon
2023-08-30 09:23:30 +00:00
Stefan Ceriu
c776229dc0
Bump the RustSDK to v1.1.0
2023-08-25 14:42:56 +03:00
Mauro
db1903ec05
MessageText component (#1521 )
...
* MessageText component
* swiftformat
* fix swift format being a bit crazy
* link tapping support
* new test + fix for font + dynamic support
* fix for blockquote issue.
* code improvement
* small code improvement and fixed tests not working due to weird swiftformat behaviour
* fix boost emoji
* updated swiftformat
* better testing
* UI tests updated
* fixing the issue with the cache overriding the size category changes
* whitespaces
* appropriate color + better info plist parsing
* cleaned the code and fixed links
* tapping link fixes
* list bug fix
* ui tests regenerated
2023-08-22 10:14:23 +00:00