Commit graph

301 commits

Author SHA1 Message Date
ismailgulek
bc1d0d7172
Merge branch 'develop' into ismail/4384_room_summary_store 2021-09-28 17:30:39 +03:00
Gil Eluard
cc8ac58fd5 Merge branch 'spaces' into gil/4498_Handle_space_link 2021-09-23 15:26:29 +02:00
Gil Eluard
cf51612864 Merge branch 'develop' into spaces 2021-09-23 15:26:06 +02:00
Gil Eluard
9b8f8d1a20 fixed FAB button in Home screen 2021-09-22 22:57:21 +02:00
ismailgulek
c71386a2ba
Adapt sentStatus changes 2021-09-22 11:41:22 +03:00
ismailgulek
1241ca8a88
Implement NSArray mappers 2021-09-22 11:38:50 +03:00
ismailgulek
c327e3433d
Introduce vc_hasIndexPath on UITableView extension 2021-09-22 11:04:39 +03:00
Gil Eluard
8ba6c55a87 Merge branch 'develop' into spaces
# Conflicts:
#	Riot/Modules/Common/Avatar/AvatarViewDataProtocol.swift
#	Riot/Modules/Common/Recents/RecentsViewController.m
#	Riot/Modules/Home/Views/RoomCollectionViewCell.m
#	Riot/Modules/TabBar/TabBarCoordinator.swift
2021-09-15 14:42:04 +02:00
Stefan Ceriu
d4c7a2b0d1 Revert "Revert "#4693 - Drop iOS 11 support."" 2021-09-14 11:41:36 +03:00
Stefan Ceriu
f2dd0e256b Revert "#4693 - Drop iOS 11 support."
This reverts commit a2b359f219.
2021-09-06 18:24:26 +03:00
David Langley
55c515fe4a Merge branch 'develop' of https://github.com/vector-im/element-ios into langleyd/4776_extract_swiftui 2021-09-02 10:14:11 +01:00
Gil Eluard
99caa08860 [Spaces] M10.7 Explore rooms #4571
- Update after review
2021-09-01 18:12:08 +03:00
Stefan Ceriu
a786cbb90a #4693 - Drop iOS 11 support. 2021-09-01 15:55:41 +03:00
David Langley
790301ccb6 Finish extraction
- Moves SwiftUI code out of Riot and into RiotSwiftUI which has no dependency on Matrix SDK.
- Git wasn't smart enough to see the file moves. Most feature function has remain unchanged. 1 change I did make was remove NotificationSettingsViewModel's dependence on MxPushRule, so that the view model could be moved into RiotSwiftUI.
- Add LocaleProvider to abstract VectorL10n's use of Matrix SDK language so it can be used in RiotSwiftUI.
- Split Theme into UKit/SwiftUI version to remove RiotSwiftUI's dependence on ThemeService and ThemeV1.
- Migrated from ThemeObserver to ThemePublisher. We push updates to ThemePublisher so that we can remove ThemeService as dependency.
- Add .DS_Store to .gitignore
2021-09-01 12:34:38 +01:00
Gil Eluard
0b7693da85 [Spaces] Show suggested in room lists #4501
- Update after code review
2021-08-16 10:33:10 +02:00
David Langley
c6ba23ec70 Add theming support, and support for other top level configuration to swiftui views with VectorHostingViewController, VectorContentModifier. Add VisibilityModifier. Move from List to VStack. 2021-08-12 11:52:06 +01:00
Gil Eluard
dd9a05a1bb [Spaces] Show suggested in room lists #4501
- Show suggested rooms section in home screen (no actions)
- Show suggested rooms section in rooms screen (no actions)
2021-07-29 23:24:34 +02:00
Gil Eluard
e492d2b077 #4090 - Update after review 2021-07-06 23:03:56 +02:00
SBiOSoftWhare
4cdca960b3 UIButton: Add shortcut to button label property adjustsFontForContentSizeCategory. 2021-06-18 19:26:55 +02:00
SBiOSoftWhare
dc5d0433a0 ShowDirectory: Update view model and handle direct input of room id alias even non public. 2021-06-14 16:13:46 +02:00
SBiOSoftWhare
13703325fa Create UserAvatarView. 2021-06-07 18:46:16 +02:00
Stefan Ceriu
f7a8163947
Adopt consolidated logging mechanism (#4370)
* Adopted the new MXLog and replaced NSLog throughout the application - vector-im/element-ios/issues/4351
* Replaced NSLog() and print() usages with MXLog.debug()
* Added swiftlint rules for NSLog(), print(), println() and os_log()
* Escape paths used to run script build phases for swiftlint and swiftgen
2021-06-03 11:30:07 +03:00
ismailgulek
993c74e773
Change onTintColor 2021-06-01 17:22:45 +03:00
ismailgulek
58ce8da129
Use tintColor for switches 2021-06-01 17:11:05 +03:00
SBiOSoftWhare
8f437e9fbe Merge branch 'spaces_beta' into spaces_feature_unavailable
# Conflicts:
#	Riot/Modules/Application/LegacyAppDelegate.h
2021-05-07 15:08:45 +02:00
SBiOSoftWhare
c3ea97b6a4 UITableViewCell: Add convenient method to hide one separator cell. 2021-05-06 12:04:29 +02:00
ismailgulek
eb5929d96d
Merge branch 'voip_design_updates' into voip_jitsi_remover 2021-05-04 19:11:17 +03:00
ismailgulek
678fc48b80
Merge branch 'develop' into voip_design_updates 2021-05-04 19:10:22 +03:00
SBiOSoftWhare
c5e82f36d5 Add comments on new classes and methods. 2021-04-29 12:38:04 +02:00
SBiOSoftWhare
41163493d7 MXSession: Remove vc_isE2EByDefaultEnabledByHSAdmin method and expose vc_homeserverConfiguration. 2021-04-29 12:37:57 +02:00
SBiOSoftWhare
863a7cddbf Remove MXWellKnown extension. 2021-04-29 12:37:11 +02:00
SBiOSoftWhare
9f2c88c244 MXSession: Expose HomeserverConfiguration based on session Well Known config or hardcoded values. 2021-04-29 12:37:11 +02:00
SBiOSoftWhare
6ba8023a9b Update Riot/Categories/MXSession+Riot.m
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2021-04-29 12:37:11 +02:00
SBiOSoftWhare
562b76f23f WellKnown: Handle new and deprecated Element properties. 2021-04-29 12:36:55 +02:00
SBiOSoftWhare
731567c84a MXSession+Riot: Update vc_isE2EByDefaultEnabledByHSAdmin method. 2021-04-29 12:36:17 +02:00
SBiOSoftWhare
c8dcbf6ec3 Create MXWellKnown extension to manage WellKnown keys specific to Element app and default values. 2021-04-29 12:36:17 +02:00
ismailgulek
6725bce7a9
Add shadow extension methods 2021-04-27 01:34:15 +03:00
ismailgulek
4086e1b0ef
Merge branch 'develop' into voip_design_updates 2021-04-02 14:39:37 +03:00
Gil Eluard
419f20b1a2 SR sizing is inconsistent with RR & Message states cosmetic changes 2021-03-17 20:09:44 +01:00
ismailgulek
c228f8859d
Refactor cell rendering, move most of the controls to the subclass, refactor user actions, add you started call state 2021-03-17 18:17:54 +03:00
ismailgulek
4554f6201e
Add call actions 2021-03-12 04:04:23 +03:00
Gil Eluard
877356138b Retrying & deleting failed messages
- Update after code review
2021-03-10 22:19:04 +01:00
Gil Eluard
d0e0dc856e Merge branch 'element_4014' into element_4013
# Conflicts:
#	Riot/Modules/Room/DataSources/RoomDataSource.m
2021-03-09 13:22:13 +01:00
Gil Eluard
1a71e61a66 Improve the status of send messages (sending, sent, received, failed)
- update after review
2021-03-09 11:59:54 +01:00
Gil Eluard
bfccb32b22 merged element_4014 into element_4013 2021-03-02 22:06:24 +01:00
Gil Eluard
9a41f0d4b8 Retrying & deleting failed messages
- Display an exclamation mark (on a red background). In case of a multi-line message
- When a message with an error is selected, show a bottom bar with the 4 following actions: Retry - Delete - Edit - Copy
- If users press on Delete, a confirmation dialog is displayed
- When error messages occur, a general error message appears above the composer. Selecting Delete will delete all error messages. Pressing on Retry will attempt to resend error messages
- If users press on Delete, a confirmation dialog is displayed
- In room lists, decorate rooms with errored messages with the error icon. Rooms with errors should be sorted first
2021-03-02 21:56:50 +01:00
Gil Eluard
419efd886a Merge branch 'develop' into element_4014
# Conflicts:
#	Riot.xcodeproj/project.pbxproj
#	Riot/Modules/Room/DataSources/RoomDataSource.m
2021-02-25 15:49:53 +01:00
Gil Eluard
6363e9018f Improve the status of send messages (sending, sent, received, failed)
- code tweaks
2021-02-25 11:10:38 +01:00
Gil Eluard
0a931cef6e Improve the status of send messages (sending, sent, received, failed)
- tweaks and new L&F for download progress
2021-02-25 11:07:21 +01:00
SBiOSoftWhare
a250f4db44 RoomCreationIntroCellContentView: Improve add topic case. 2021-02-23 15:46:20 +01:00
Gil Eluard
2f774022e2 Improve the status of send messages (sending, sent, received, failed)
- First implementation
2021-02-22 13:51:25 +01:00
SBiOSoftWhare
d451788b35 UIView: Add accessibility commodity method. 2021-02-22 00:12:00 +01:00
ismailgulek
f41efd90d9 Merge branch 'voip_2746' into voip_tiles
# Conflicts:
#	Riot.xcodeproj/project.pbxproj
2021-02-10 21:41:51 +03:00
ismailgulek
e652206c0a Avoid force unwraps 2021-02-10 00:05:27 +03:00
ismailgulek
f82e64bf31 Make extension objc 2021-01-21 14:27:55 +03:00
ismailgulek
bfc82b0b0f Merge branch 'voip_2746' into voip_dialpad
# Conflicts:
#	Riot.xcodeproj/project.pbxproj
2021-01-20 16:25:36 +03:00
ismailgulek
58243aa7de Implement call cells, introduce allLinkedEvents on bubble cell data 2021-01-20 13:26:28 +03:00
ismailgulek
46a64d7ed3 Add call back action identifier 2021-01-20 13:23:09 +03:00
ismailgulek
6f3f7ddfd9 Merge branch 'develop' into voip_2746
# Conflicts:
#	Riot/Modules/Application/LegacyAppDelegate.m
2021-01-15 16:07:36 +03:00
ismailgulek
5c4062511b Introduce vc_removingAllWhitespaces on String 2021-01-13 21:49:45 +03:00
SBiOSoftWhare
68f4bcfc23
Update Riot/Categories/UIImage.swift
Co-authored-by: ismailgulek <ismailgulek@users.noreply.github.com>
2021-01-08 15:52:23 +01:00
SBiOSoftWhare
1fb17c712b Add convenient methods on URLComponents. 2021-01-07 11:22:24 +01:00
SBiOSoftWhare
a47e277058 UIImage: Add convenient method to resize an image. 2020-12-18 18:44:08 +01:00
ismailgulek
dfa9dc8ff2
Merge branch 'develop' into voip_2746 2020-12-03 12:26:26 +03:00
ismailgulek
70204abd53 Introduce CallService 2020-12-01 13:41:31 +03:00
SBiOSoftWhare
ad85de8573 InviteRecentTableViewCell: Add disclosure indicator to indicate preview action. 2020-11-13 17:16:43 +01:00
ismailgulek
6200e09484 Return image view instance as fab 2020-10-09 12:38:09 +03:00
ismailgulek
a83b999c3a Add an extension methof for simplicity 2020-10-09 12:26:54 +03:00
ismailgulek
0e6a286fe0 Factorize layout of table header and footers 2020-10-07 15:26:58 +03:00
manuroe
0c036e4cc2 MXSession: Make sure vc_canSetupSecureBackup is reusable
Put specific additional check out of this method
2020-10-01 16:46:32 +02:00
ismailgulek
409082a891 Remove the method not used anymore 2020-09-23 13:36:49 +03:00
ismailgulek
c12975c032 Introduce an extension method to hide cell separators 2020-09-21 14:05:27 +03:00
ismailgulek
47d067e23e Merge branch 'develop' into element_3628
# Conflicts:
#	Riot.xcodeproj/project.pbxproj
2020-09-10 18:18:29 +03:00
ismailgulek
7f562a3c84 Move MXThirdPartyProtocolInstance extension to a new file 2020-09-10 11:25:43 +03:00
ismailgulek
0495ba8f66 Make some legacy cells conform Reusable & Themable, add some new 2020-09-09 19:32:54 +03:00
ismailgulek
88de16b0e6 Introduce vc_closeKeyboard on UIApplication 2020-09-07 13:51:30 +03:00
SBiOSoftWhare
1d1a324c1b Remove deprecated -[UIApplication openURL] usage. 2020-09-01 12:20:44 +02:00
ismailgulek
80891db6c2 Make MXSessionState comparable 2020-08-21 14:06:35 +03:00
ismailgulek
c4c16f399f Merge branch 'develop' into element_3452 2020-08-13 13:32:46 +03:00
ismailgulek
7d28480219 Introduce vc_notRenderedImage 2020-08-12 18:41:38 +03:00
ismailgulek
dcded30cc4 Fix default orientation for navigation controllers 2020-08-12 17:41:54 +03:00
ismailgulek
877c72fb91 Refactor remove call notifications method 2020-08-11 12:53:51 +03:00
ismailgulek
ea7bca3a9b Remove call notifications on various points 2020-08-10 18:20:02 +03:00
ismailgulek
f4b32dc4d5 Fix crash 2020-08-10 14:28:05 +03:00
ismailgulek
d9dc80ec36 Introduce isPhone 2020-08-06 16:32:58 +03:00
ismailgulek
2aef5f33f0 Move scroll method to an extension 2020-08-05 15:22:27 +03:00
manuroe
13d1b51a79 BuildSettings: Make it work from extensions 2020-07-30 11:35:50 +02:00
ismailgulek
26055b96c7
Add view shaker 2020-07-21 16:16:39 +03:00
SBiOSoftWhare
e4c93e4d25 UITableViewCell: Add convenient method to set disclosure indicator with tint color. 2020-07-16 23:12:33 +02:00
SBiOSoftWhare
8ccd4952fa HomeVC: Room actions, update icons and add background corner radius. 2020-07-07 02:29:41 +02:00
ismailgulek
ed9750e53f
Merge branch 'develop' into xcode11
# Conflicts:
#	CHANGES.rst
#	Riot.xcodeproj/project.pbxproj
2020-06-26 17:33:09 +03:00
SBiOSoftWhare
77b726189b Refactoring secure backup references. 2020-06-26 14:13:37 +02:00
SBiOSoftWhare
4a74b09245 MXSession: Add convenient method to check if we can setup secure key backup. 2020-06-25 15:58:52 +02:00
SBiOSoftWhare
994d64ca20 MXSession+Riot: Use vc prefix as other extensions. 2020-06-25 10:23:24 +02:00
SBiOSoftWhare
d4f1aef1fc
Merge branch 'develop' into riot_3344 2020-06-24 21:57:37 +02:00
manuroe
3159131651 E2E by default: Disable it if the HS admin disabled it
#3305
2020-06-24 17:08:14 +02:00
SBiOSoftWhare
90ed345679 UIImage: Add convenient method to set the alpha. 2020-06-23 18:31:52 +02:00
SBiOSoftWhare
cdb6369231 MXRecoveryService: Add convenient var to return SecretsRecoveryAvailability. 2020-06-15 16:12:58 +02:00
ismailgulek
a9e862138f
Enhance NSE logs for debugging 2020-06-02 18:25:19 +03:00
ismailgulek
0d73c8dccf
Merge pull request #3268 from vector-im/remove_pushkit
Remove PushKit
2020-05-29 12:34:20 +03:00
SBiOSoftWhare
b713293347 Fix some SwiftLint warnings. 2020-05-29 09:35:46 +02:00
ismailgulek
f85aee0a56
Implement a workaround to delete some notifications afterwards
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-25 17:52:29 +03:00
ismailgulek
abb2976e9a Removed latest categories
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-22 12:10:58 +03:00
ismailgulek
c92f0b9b0b Direct status bar hidden & style properties to children for UINavigationController, UITabBarController and UISplitViewController
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-22 12:08:16 +03:00
SBiOSoftWhare
c27d679c41 Add convenient multiline UILabel height fix method. 2020-05-07 10:52:12 +02:00
SBiOSoftWhare
333f7a0db4 MasterTatBarVC: Fix navigation stack issue when show security screen. 2020-05-05 09:17:47 +02:00
SBiOSoftWhare
c88ef8f549 UILabel: Add convenient method for setting line spacing. 2020-04-24 16:23:15 +02:00
ismailgulek
911eb38026
Merge pull request #3084 from vector-im/riot_3067
Consider Safe Area Insets for Some Screens
2020-04-23 20:56:58 +03:00
manuroe
020fbc4ed6 Rename UserEncryptionTrustLevelNormal to UserEncryptionTrustLevelNotVerified 2020-04-23 15:25:43 +02:00
manuroe
38fd4fd831 Cross-signing: Allow to verify each device of users with no cross-signing
Fix #3138
This is implemented by adding a new `UserEncryptionTrustLevel` value: `UserEncryptionTrustLevelNoCrossSigning`
2020-04-23 15:10:41 +02:00
ismailgulek
58de3a7898
Some custom constraints on table view cells fixed for safe area
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-04-22 16:15:30 +03:00
ismailgulek
a2e35356e1
ContactsTableViewController safe area insets, fixes #3072
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-04-22 13:53:12 +03:00
ismailgulek
5d9737f67b
Return to call button safe area insets
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-04-22 13:53:09 +03:00
manuroe
f337e84888 Badges: Make Riot build again 2020-04-21 14:26:20 +02:00
manuroe
801da3d129 RoomMember scree: Display the verify button even in non e2e rooms
#3046
Display also the shield on the user to have the same screen for e2e and non e2e rooms
2020-03-27 09:12:49 +01:00
SBiOSoftWhare
22b9b6df21 MXRoom: Add a method to get user encryption trust level. 2020-02-03 18:59:25 +01:00
manuroe
09c77e6142 Room e2e decoration: Change the algo a bit 2020-02-01 17:25:23 +01:00
manuroe
c70452661a Room decoration: Use shields instead of padlocks
#2906
2020-01-31 14:59:54 +01:00
manuroe
750be94854 E2E by default: canEnableE2EByDefaultInNewRoomWithUsers is now defined in the SDK 2020-01-30 16:08:58 +01:00
manuroe
12ec147b62 Negotiate E2E by default for DMs
#2943
2020-01-28 15:16:53 +01:00
SBiOSoftWhare
a47522b7c5 MXKRoomBubbleTableViewCell: Add incoming key verification request action identifiers. 2020-01-14 19:55:49 +01:00
SBiOSoftWhare
25bb439aff UIView: Add convenient vc_removeAllSubviews method. 2019-12-20 10:32:33 +01:00
SBiOSoftWhare
643418142a UIStackView: Refactor extension method vc_removeAllSubviews to vc_removeAllArrangedSubviews. 2019-12-20 10:32:09 +01:00
SBiOSoftWhare
719c0a9b68 Add convenient method to UIButton to set a background color as an image. 2019-11-28 12:42:19 +01:00
SBiOSoftWhare
e866817e82 Add convenient clamped method to FloatingPoint. 2019-11-28 12:41:18 +01:00
manuroe
ac1858a730 iOS13 code cannot be built from Xcode10 2019-08-08 15:05:50 +02:00
manuroe
ec768b1202 BF: Fix crash for earch bar customisation in iOS13
#2626
2019-08-07 18:36:58 +02:00
SBiOSoftWhare
8b9ca69836 Reactions: Add long press gesture on bubble cell reactions. 2019-07-30 17:24:45 +02:00
SBiOSoftWhare
a769f6290e Emoji picker: Implement Emoji picker screen. 2019-07-25 16:58:14 +02:00
SBiOSoftWhare
62dabebdd8 Themes: Handle search bar text color. 2019-07-25 16:58:14 +02:00
SBiOSoftWhare
85e8d6eb27 MXKRoomBubbleTableViewCell: Add a method to get surrounding bubble component frame. 2019-07-08 18:42:32 +02:00
SBiOSoftWhare
f33a0e9b7a MXKRoomBubbleTableViewCell: Add convenient method to compute bubble cell height for cell with attachment view. 2019-06-18 18:29:12 +02:00
SBiOSoftWhare
c8bbf9fd00 MXKRoomBubbleTableViewCell: Improve timestamp label positioning. 2019-06-18 17:41:09 +02:00
SBiOSoftWhare
4e9cb9d52f
Update Riot/Categories/MXKRoomBubbleTableViewCell+Riot.m
Co-Authored-By: giomfo <giom@matrix.org>
2019-05-29 15:22:42 +02:00
SBiOSoftWhare
dc61c7dee1
Update Riot/Categories/MXKRoomBubbleTableViewCell+Riot.h
Co-Authored-By: giomfo <giom@matrix.org>
2019-05-29 15:17:20 +02:00
SBiOSoftWhare
bd78e32cc7
Update Riot/Categories/MXKRoomBubbleTableViewCell+Riot.h
Co-Authored-By: giomfo <giom@matrix.org>
2019-05-29 15:16:38 +02:00
SBiOSoftWhare
599bab3967 MXKRoomBubbleTableViewCell: Display timestamp on left when select memberships. 2019-05-29 12:59:46 +02:00
SBiOSoftWhare
550f3aac9e MXKRoomBubbleTableViewCell: Add convenient method to get frame of a MXKRoomBubbleComponent in cell contentView. Update timestamp label frame calculation. 2019-05-29 12:18:56 +02:00
SBiOSoftWhare
4cb166072a MXKRoomBubbleTableViewCell: Add convenient method to calculate a bubble component frame in table view. 2019-05-22 18:46:22 +02:00
SBiOSoftWhare
4e1e95fd2c
Update Riot/Categories/MXKRoomBubbleTableViewCell+Riot.m
Co-Authored-By: manuroe <manuroe@users.noreply.github.com>
2019-05-22 17:28:08 +02:00
SBiOSoftWhare
727f44295b Add convenient method on UITouch to determine if touch is inside a given view. 2019-05-22 16:35:26 +02:00
SBiOSoftWhare
6419fd6ecc MXRoomBubbleTableViewCell: Display the timestamp of the selected component on the left when there is enough space. 2019-05-22 16:22:26 +02:00
SBiOSoftWhare
0c8a98327d Add convenient methods on UIGestureRecognizer, UIImage and UIStackView. 2019-05-15 21:29:47 +02:00
SBiOSoftWhare
d6509d01f8 MXKRoomBubbleTableViewCell+Riot: Add possibility to hide timestamp when selecting a component. 2019-05-15 21:15:50 +02:00
SBiOSoftWhare
b4d7b3f78e MXKRoomBubbleTableViewCell+Riot: Add possibility to hide edit button on selection. 2019-05-07 16:49:12 +02:00
SBiOSoftWhare
f401f31021 Add a convenience method on MXKRoomBubbleTableViewCell Riot category to update the color name based on the sender id. 2019-03-07 17:44:15 +01:00
SBiOSoftWhare
3e776ebae7 Add a custom hash method on String same as Riot Web 2019-03-07 17:32:10 +01:00
manuroe
99bb7b9324
Update Riot/Categories/UIApplication.swift
Co-Authored-By: SBiOSoftWhare <SBiOSoftWhare@users.noreply.github.com>
2019-03-04 19:06:14 +01:00
SBiOSoftWhare
b0d456b028 Add convenient method on UIApplication for opening an URL on iOS 9 and iOS 10+ 2019-03-04 18:03:20 +01:00
SBiOSoftWhare
a4e2e6ee6f Fix SwiftLint warnings 2019-02-27 10:07:51 +01:00