Commit graph

5215 commits

Author SHA1 Message Date
Andy Uhnak
39fdbc901e Simplify event encryption decoration 2023-03-27 14:58:10 +01:00
aringenbach
052acddc3b Update environment object setup and view model context wrapping to restore SwiftUI UI tests 2023-03-23 17:16:57 +01:00
aringenbach
b38ba7306f Fix wrong condition for highlight test 2023-03-23 17:16:57 +01:00
aringenbach
5b2ce25931 Clean WysiwygInputToolbarView code 2023-03-23 17:16:57 +01:00
aringenbach
9c46f607aa Avoid crashing if data source is not ready when translating Pills 2023-03-23 17:16:57 +01:00
aringenbach
2b61b5bc20 Use PillProvider for RTE Pills creation 2023-03-23 17:16:57 +01:00
aringenbach
5fb426f772 Display user suggestion list in fullscreen mode with shared context from UserSuggestionCoordinator 2023-03-23 17:16:57 +01:00
aringenbach
88aac572cc Fix broken constraint after using fullscreen mode 2023-03-23 17:16:57 +01:00
aringenbach
a23987bce2 Update composer library to 1.3.0 and apply changes 2023-03-23 17:16:57 +01:00
aringenbach
1850299455 Always use preferred font for body 2023-03-23 17:16:57 +01:00
aringenbach
3b09fcc0c8 Use textDefaultFont in all variants of the InputToolbarView 2023-03-23 17:16:57 +01:00
aringenbach
c933526f22 Enable user mentions in Rich Text Editor 2023-03-23 17:16:57 +01:00
Andy Uhnak
b33f29e0e7 Revert "Merge pull request #7430 from vector-im/andy/user_trust"
This reverts commit 7f5d3b46eb, reversing
changes made to 5a3adde8f7.
2023-03-22 15:57:25 +00:00
Nicolas Mauri
f969d5ef31 Fix: prevent a crash if we don’t have a display name for the user mentionned by the pill 2023-03-21 16:49:47 +01:00
Nicolas Mauri
a660e3e883
Merge pull request #7432 from vector-im/nimau/PSB-59-pills
Turning permalinks into pills
2023-03-21 14:36:54 +01:00
Nicolas Mauri
83a10e2430 Fix: Unit tests 2023-03-21 14:17:52 +01:00
Nicolas Mauri
2979f98ae4 Fix: an issue where we display the default user icon for a known user 2023-03-21 10:48:17 +01:00
Nicolas Mauri
5c354f2eb0 Fix: Message pill when the room is an alias 2023-03-21 10:30:19 +01:00
Nicolas Mauri
13ba93ae13 Fix: the avatar was incorrect for the pill of a message if the event is not loaded. 2023-03-21 09:27:48 +01:00
Nicolas Mauri
aa0cb80b86 Fix: implement the changes discussed in the PR 2023-03-21 09:17:34 +01:00
Andy Uhnak
51ee9255e7 Increase local rust crypto rollout 2023-03-20 14:13:44 +00:00
Nicolas Mauri
ed954cb255 Fix: corner radius for small SpaceAvatarView 2023-03-20 14:32:55 +01:00
Anderas
7f5d3b46eb
Merge pull request #7430 from vector-im/andy/user_trust
Refactor user / room encryption trust level
2023-03-20 12:52:46 +00:00
Nicolas Mauri
ba5a14d494 Fix: restore the height of the pill to its original value 2023-03-20 10:50:25 +01:00
Nicolas Mauri
13f03c060b Fix: default pill icon for an unknown user 2023-03-20 10:42:21 +01:00
Nicolas Mauri
64ea1904fc Turning permalinks into pills
#7409: Permalinks to a room/space are pillified
#7411: Permalinks to a matrix user are pillified
#7412: Permalinks to messages are pillified
2023-03-17 16:58:59 +01:00
manuroe
5a3adde8f7
Merge pull request #7429 from vector-im/manu/7406_m_file_format
Manage bad m.file attachment format
2023-03-16 17:27:50 +01:00
Andy Uhnak
5c669a7fee Refactor encryption trust level 2023-03-16 14:56:50 +00:00
manuroe
d672dffcdd Manage bad m.file attachment format
https://github.com/vector-im/element-ios/issues/7406

By using value type checker methods.

With this fix, attachments with a wrong size format are still displayed in the timeline. Only the size is omitted
2023-03-15 15:18:38 +01:00
Alfonso Grillo
0896776e3c Improve avatar tappability 2023-03-14 16:09:49 +01:00
Andy Uhnak
308dab28ca Update startup progress UX 2023-03-10 09:40:48 +00:00
Mauro
e5b670f3b0
Merge pull request #7410 from vector-im/mauroromito/displayName_refactor
MatrixRoomSummary displayname renamed to displayName
2023-03-07 10:01:23 +01:00
Nicolas Mauri
9cc9ddec6d
Merge pull request #7408 from vector-im/nimau/3946-verification-unexpected-message
Fix: incoming SAS transaction was accepted twice
2023-03-06 16:38:20 +01:00
Mauro Romito
5d1758de6d refactor completed 2023-03-06 14:59:03 +01:00
Nicolas Mauri
42a37ce0f4 Fix: incoming SAS transaction was accepted twice 2023-03-06 14:07:27 +01:00
Nicolas Mauri
c568b5ed1d
Merge pull request #7396 from vector-im/nimau/6612-dm-email
Direct Message: manage encrypted DM in case of invite by email
2023-03-06 12:04:53 +01:00
Anderas
0a95389a31
Merge pull request #7401 from vector-im/andy/analytics
Use SwiftPM for AnalyticsEvents instead of CocoaPods
2023-03-06 09:56:19 +00:00
Andy Uhnak
b1cd12a8ca Update docs + tests 2023-03-02 19:42:09 +00:00
Andy Uhnak
f1a7195be2 Use SwiftPM AnalyticsEvents 2023-03-02 16:59:48 +00:00
Alfonso Grillo
32d4dc2a85 Fix poll ended event rendering 2023-03-02 17:49:15 +01:00
Flescio
9441f6955a
fix issue on timeline bubbles not showing proper content after decrypt (#7397)
* fix issue on timeline bubbles not showing proper content after decrypt

* Update Riot/Modules/MatrixKit/Models/Room/MXKRoomDataSourceManager.m
2023-03-02 11:30:26 +01:00
Nicolas Mauri
bef4a4b2be Start chat: Hide the contact search bar if adding a participant is not allowed 2023-03-01 17:40:29 +01:00
Nicolas Mauri
a1c94ebf70 Disable QR code reading on a simulator 2023-03-01 16:28:39 +01:00
Nicolas Mauri
b65cb454a5 Code cleanup 2023-03-01 11:41:35 +01:00
Nicolas Mauri
93275c39b4 Direct Message: manage encrypted DM in case of invite by email
- Don’t allow to invite more than one contact by email
- The DM will be created by enabling the encryption when the HS promotes the encryption
- The chat composer is disabled until a matrix account is created by using the invited email
2023-02-27 18:42:18 +01:00
Nicolas Mauri
8e6a12c49c Fix localized string 2023-02-24 14:21:27 +01:00
Nicolas Mauri
e1c899b589 Update other key verification screens UX/UI 2023-02-23 09:33:14 +01:00
Nicolas Mauri
3cef74378d Update UX/UI implementation 2023-02-23 09:33:14 +01:00
Nicolas Mauri
d4a0f8cb21 QRCodeScannerView must be hidden when starting a session verification 2023-02-23 09:33:14 +01:00
Nicolas Mauri
d9705f8612 Automatically starts scanning the QR code if we have not received a QR code. 2023-02-23 09:33:14 +01:00
Andy Uhnak
5c82dbe144 CryptoSDK phased rollout feature 2023-02-22 11:25:28 +00:00
Flescio
01e6579f89
Show own location in map views (#7375)
* show own location on static sharing

* show own location on live sharing

* add tests and changelog

* check location authorisation, fix center to current user location button

* it moves request to LocationManager in proper service

* add static location viewer service
2023-02-20 18:07:03 +01:00
Hugh Nimmo-Smith
64c0a5447c
Support for v2 of MSC3903 (#7372) 2023-02-15 14:02:33 +00:00
Anderas
835b2ddce4
Merge pull request #7369 from vector-im/andy/crypto_fixes
Do not reset device keys if migrating to CryptoSDK
2023-02-13 13:01:39 +00:00
Andy Uhnak
ef4044f0cb Do not reset device keys if migrating to CryptoSDK 2023-02-13 11:14:26 +00:00
aringenbach
75049c29e8
Update composer library version to 1.1.0 (#7365)
* Update composer library version to 1.1.0

* Add changelog file
2023-02-13 10:44:03 +01:00
Doug
ee149eddd6 Merge branch 'master' into develop 2023-02-10 13:39:22 +00:00
Alfonso Grillo
062789d331
Merge pull request #7353 from vector-im/alfogrillo/fallback_poll_ended_event
Fallback for poll ended event (PSG-1156)
2023-02-10 10:33:39 +01:00
Nicolas Mauri
8a1f0b96df Fix some voice message issues (#7325, #7217)
Fix #7325: prevent setting the audio session to inactive during recording
Fix #7217: ensure that an audio player has its content loaded when it reaches the end to allow seek and replay.
2023-02-09 11:58:38 +01:00
Andy Uhnak
3fc07f3351 Crashes in verification view models 2023-02-09 08:44:31 +00:00
Andy Uhnak
9be98478db Fix some crashes 2023-02-09 08:44:31 +00:00
Flescio
1f8f6ffdf1
"Mark as unread" dot appears on rooms that are actually unread, not marked as such (#7352)
* fix green dot only to appear for marked action
2023-02-09 09:01:16 +01:00
Alfonso Grillo
c83ddda16d Sync with matrix feature branch 2023-02-08 17:29:30 +01:00
Alfonso Grillo
67eabe146c Fix last message for m.poll.end events 2023-02-08 15:30:05 +01:00
Nicolas Mauri
68942d1d6c Fix an issue where a voice message disappears after being sent 2023-02-08 15:07:40 +01:00
Alfonso Grillo
93d3e32bc7
Merge pull request #7335 from vector-im/alfogrillo/automatic_poll_rules_sync
Automatic poll rules sync (PSG-1135)
2023-02-03 11:57:53 +01:00
Alfonso Grillo
3972da892e Refactor PushRulesUpdater API 2023-02-03 10:49:59 +01:00
Andy Uhnak
4a3b6c9af4 Track crypto sdk being enabled 2023-02-02 17:55:09 +00:00
Alfonso Grillo
8de38cb073 Remove debug prints 2023-02-02 17:01:24 +01:00
Alfonso Grillo
4c1707833a Put logic back in AppCoordinator 2023-02-02 15:02:13 +01:00
Andy Uhnak
a9f8feb0a6 Enable Crypto SDK for production 2023-02-02 12:32:14 +00:00
Alfonso Grillo
45dae0bc1a Move logic in AppConfiguration 2023-02-02 11:04:28 +01:00
Alfonso Grillo
7374efe93e Continue PushRulesUpdater logics 2023-02-02 09:58:29 +01:00
Alfonso Grillo
42b91d34fd Start PushRulesUpdater 2023-02-01 19:11:00 +01:00
Flavio Alescio
5e1e28e7fa Merge commit '2aaef072e4a2cdae4e49c801136613292c6e292d' into flescio/1040-poll_detail 2023-02-01 10:13:28 +01:00
aringenbach
2aaef072e4
Merge pull request #7317 from vector-im/aringenbach/7316_indentation_support
Labs: Rich text editor: enable list items indentation
2023-02-01 09:44:45 +01:00
Anderas
b1a1cb1813
Merge pull request #7323 from vector-im/andy/reset_crypto
Reset Crypto SDK labs on logout
2023-01-31 16:35:39 +00:00
Andy Uhnak
097658f9f5 Fix develop 2023-01-31 16:29:17 +00:00
Flavio Alescio
4556b86c92 indentation 2023-01-31 16:55:59 +01:00
Flavio Alescio
c568fdb9c6 Merge commit '54602b63ec29ec85322e7942359969b34ab8605a' into flescio/1040-poll_detail 2023-01-31 16:03:49 +01:00
Flavio Alescio
d4535c528d code restyle for poll detail 2023-01-31 16:03:38 +01:00
Andy Uhnak
ff6fab708e Reset Crypto SDK on logout 2023-01-31 13:14:47 +00:00
Flescio
54602b63ec
Merge pull request #7301 from vector-im/flescio/7253-Add_mar_kas_unread_option_for_rooms
Flescio/7253 add mar kas unread option for rooms
2023-01-31 12:37:40 +01:00
Nicolas Mauri
13698ee8e7
Merge pull request #7302 from vector-im/nimau/7189_vb_decryption_error
Inform the user about decryption errors during a voice broadcast
2023-01-31 10:23:47 +01:00
Flavio Alescio
b39a4fae6a Merge branch 'develop' into flescio/1040-poll_detail 2023-01-31 09:18:59 +01:00
Andy Uhnak
c54546d3b8 Display backup import progress 2023-01-30 15:49:10 +00:00
Nicolas Mauri
85925600bc Hide decryption errors only for voice broadcast chunks. 2023-01-30 16:37:58 +01:00
Flavio Alescio
728dd10afd function renamed as in sdk 2023-01-30 16:04:58 +01:00
Flavio Alescio
c794354386 Merge branch 'develop' into flescio/7253-Add_mar_kas_unread_option_for_rooms 2023-01-30 15:55:30 +01:00
aringenbach
166ec54ac2 Labs: Rich text editor: enable list items indentation 2023-01-30 15:38:56 +01:00
Anderas
b741d3526d
Merge pull request #7310 from vector-im/andy/crypto_password
Generate Crypto SDK store key
2023-01-30 11:42:40 +00:00
Flavio Alescio
7e9f44a78f added alert to show possible error, improved tests 2023-01-27 17:10:16 +01:00
Flavio Alescio
d97095e55d function renamed 2023-01-27 15:28:02 +01:00
Flavio Alescio
51841534d7 Merge branch 'develop' into flescio/1040-poll_detail
# Conflicts:
#	Riot/Generated/Strings.swift
#	RiotSwiftUI/Modules/Room/PollHistory/Coordinator/PollHistoryCoordinator.swift
#	RiotSwiftUI/Modules/Room/PollHistory/PollHistoryModels.swift
#	RiotSwiftUI/Modules/Room/PollHistory/PollHistoryViewModel.swift
2023-01-27 15:22:15 +01:00
Flavio Alescio
762af03aaf added view in timeline action, added tests 2023-01-27 15:07:32 +01:00
Andy Uhnak
4a2a057a9b Generate crypto store key 2023-01-27 10:20:40 +00:00
Doug
78a427238d Merge branch 'master' into develop 2023-01-26 17:17:17 +00:00
Andy Uhnak
3e286d1abb Ensure E2EE never tracks UnknownError 2023-01-26 11:23:25 +00:00
Nicolas Mauri
c0e5697f07 Inform the user about decryption errors during a voice broadcast 2023-01-25 17:23:42 +01:00
Flavio Alescio
304ae705c4 Merge branch 'develop' into flescio/1040-poll_detail
# Conflicts:
#	Riot/Assets/en.lproj/Vector.strings
#	Riot/Generated/Strings.swift
2023-01-25 15:49:40 +01:00
Flavio Alescio
612b80d820 room set manually unread style without notification count 2023-01-25 11:05:54 +01:00
Flavio Alescio
12e63a0080 Merge branch 'develop' into flescio/7253-Add_mar_kas_unread_option_for_rooms 2023-01-25 10:28:37 +01:00
Gil Eluard
ddd264a5f8 App Layout: Removed the onboarding flow 2023-01-24 21:25:58 +01:00
Alfonso Grillo
82d2ad8e34
Merge pull request #7293 from vector-im/alfogrillo/fetch_poll_history
Fetch poll history (PSG-1043)
2023-01-24 16:31:27 +01:00
Phl-Pro
b41c9b1f5c
Merge pull request #7275 from vector-im/phlpro/remove-duplicate-leave-room-button
Remove "Leave" button on Room details screen
2023-01-24 10:56:46 +01:00
Nicolas Mauri
c06302993b
Merge pull request #7290 from vector-im/nimau/PSF-1630-add_support_msc3912
Implement MSC3912 to delete server side all the data of the deleted voice broadcast
2023-01-24 09:16:55 +01:00
Andy Uhnak
0c17457299 Fix compile error 2023-01-23 17:14:11 +00:00
Nicolas Mauri
fd71b40d4e Always try to delete a voicebroadcast with relations. The SDK will ensure the feature is supported. 2023-01-23 17:06:47 +01:00
Nicolas Mauri
ad796ee509 Use the new endpoint for redaction 2023-01-23 16:47:17 +01:00
Flavio Alescio
0437838091 added poll detail scene with mock data 2023-01-23 16:38:53 +01:00
Nicolas Mauri
7aea56606a
Merge pull request #7291 from vector-im/nimau/7285_voicebroadcast_connection_issue
Detect and handle the lost of connectivity with the homeserver while recording a voice broadcast
2023-01-23 14:29:32 +01:00
Alfonso Grillo
3b29c561b1 Begin PollHistoryService 2023-01-23 12:09:46 +01:00
Anderas
19320c2abe
Merge pull request #7272 from vector-im/andy/migrate_crypto
Add labs settings for Crypto SDK
2023-01-23 09:22:11 +00:00
Nicolas Mauri
6f019b8918 Pause the voicebroadcast recording if the homeserver is not reachable 2023-01-20 19:42:15 +01:00
Nicolas Mauri
37bd17798c Delete a voice broadcast with all related events if MSC3912 is supported. 2023-01-19 18:22:25 +01:00
Alfonso Grillo
fdf1839b12
Merge pull request #7284 from vector-im/alfogrillo/reply_to_ended_polls
Render replies to ended polls (PSG-1131)
2023-01-19 10:34:42 +01:00
Andy Uhnak
9480bb714a Display migration progress during startup 2023-01-18 16:45:32 +00:00
Yoan Pintas
f410ad13ad
Voice broadcast connection error handling while recording (#7282) 2023-01-18 16:27:13 +00:00
Alfonso Grillo
2a2df206b5 Improve code 2023-01-18 17:22:38 +01:00
Alfonso Grillo
80ce6b7f51 Handle edge cases for plain “body” 2023-01-18 16:35:39 +01:00
Alfonso Grillo
69f3df0867 Improve formatter 2023-01-18 16:35:39 +01:00
Alfonso Grillo
a8d041da3b Add replacement logic for “Ended poll” text 2023-01-18 16:35:39 +01:00
Alfonso Grillo
8ad5489a5e Add new localisation for ended poll replies 2023-01-18 16:35:39 +01:00
Yoan Pintas
02477cc240
Handle a connection issue when we try to start a new voice broadcast (#7276) 2023-01-17 14:49:36 +00:00
Nicolas Mauri
a9ff1282cf
Merge pull request #7257 from vector-im/nimau/PSF-1734_vb_control_center
Fix the now playing info center while a voice broadcast is played
2023-01-17 09:38:28 +01:00
Nicolas Mauri
f8a851b5dd Make sure we store the last block sequence sent (even if it's 0) 2023-01-16 16:00:18 +01:00
Nicolas Mauri
648b4091a6 Live voice broadcast should not appear in Info Center while playing 2023-01-16 15:24:40 +01:00
Philippe Loriaux
dcd5e66068 Remove "Leave" button on Room details screen 2023-01-16 14:58:18 +01:00
Nicolas Mauri
ee51fc7485 Improved voice broadcast completion detection during playback 2023-01-16 14:37:53 +01:00
Andy Uhnak
f098e77ff6 Add labs settings for crypto v2 2023-01-16 12:12:54 +00:00
Alfonso Grillo
3b172e60c3
Merge pull request #7267 from vector-im/alfogrillo/active_poll_history
Active poll history UI (PSG-906)
2023-01-16 12:43:07 +01:00
Nicolas Mauri
f8717de59e
Merge pull request #7266 from vector-im/nimau/PSF-1851_VB_sent_as_VM
Fix how is resent a voice broadcast chunk
2023-01-16 12:29:15 +01:00
Nicolas Mauri
c8bdab7e18 Code cleanup 2023-01-13 15:29:51 +01:00
Alfonso Grillo
c7c3b85589 Add changelog.d file 2023-01-13 11:04:40 +01:00
Velin92
3284437fc0
Merge pull request #7262 from vector-im/mauroromito/change_link_colour
Different link colours are now supported and by default most links are now in blue in the timeline
2023-01-13 10:58:22 +01:00
Nicolas Mauri
3d8d6e10bc Fix how is resent a voice broadcast chunk 2023-01-13 08:33:30 +01:00
Mauro Romito
1b9a26c3cc replaced UIColor link with ThemeService links color everywhere it was used, and included the ThemeService in NSE and SiriIntents 2023-01-12 17:54:44 +01:00
Mauro Romito
50cf98e692 added the links color wherever possible 2023-01-12 16:45:43 +01:00
Nicolas Mauri
8ba0fea026 Remove strong references on audio players used for voicebroadcast 2023-01-12 15:55:06 +01:00
Alfonso Grillo
29da649073 Cleanup scaffolding 2023-01-12 12:06:15 +01:00
Alfonso Grillo
5ae59ea7d3 Add poll history scaffolding 2023-01-12 11:43:29 +01:00
Alfonso Grillo
a493d6fd62 Add poll history in room’s settings 2023-01-12 10:42:56 +01:00
Mauro Romito
891ceb8546 fixed a test and some code improvements 2023-01-12 10:41:52 +01:00
David Langley
7dfbdbdfce
Merge pull request #7223 from vector-im/langleyd/7222_fix_location_sharing_permissions_request
Langleyd/7222 fix location sharing permissions request
2023-01-12 09:15:24 +00:00
Nicolas Mauri
b2ae0e78b2 Fix NowPlayingInfoCenter for a live voice broadcast 2023-01-12 09:35:14 +01:00
Flavio Alescio
14b1e7f025 new icon with badge 2023-01-12 09:20:03 +01:00
Mauro Romito
b1a10750ff done 2023-01-11 23:40:35 +01:00
Mauro Romito
e40a36e462 this is required to enable custom colors for specific links 2023-01-11 21:39:09 +01:00
Mauro Romito
5335515252 fix 2023-01-11 21:29:02 +01:00
Mauro Romito
11008835bd the behaviour is now the same as android for links, except for the the "(edited)" button which should be grey and this fix has made it blue, will check how to solve this but it might also need some design inputs regarding the "reply" label (which as android is blue, but both are very different from the ) 2023-01-11 18:45:03 +01:00