From 9d4e8f458be77bba3cf46541aa44a9680009bd70 Mon Sep 17 00:00:00 2001 From: Doug Date: Wed, 13 Apr 2022 10:06:43 +0100 Subject: [PATCH] Fix some warnings. --- Riot/Modules/MatrixKit/Models/Room/MXKRoomDataSource.h | 2 +- .../MemberDetail/SpaceMemberDetailCoordinator.swift | 6 +++++- .../Beta/ThreadsBetaCoordinatorBridgePresenter.swift | 3 ++- changelog.d/pr-6032.misc | 1 + 4 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 changelog.d/pr-6032.misc diff --git a/Riot/Modules/MatrixKit/Models/Room/MXKRoomDataSource.h b/Riot/Modules/MatrixKit/Models/Room/MXKRoomDataSource.h index 146f5b23b6..2b2ba89457 100644 --- a/Riot/Modules/MatrixKit/Models/Room/MXKRoomDataSource.h +++ b/Riot/Modules/MatrixKit/Models/Room/MXKRoomDataSource.h @@ -622,7 +622,7 @@ extern NSString *const kMXKRoomDataSourceTimelineErrorErrorKey; @param latitude the location's latitude @param longitude the location's longitude @param description an optional description - @param assetType the location's type + @param coordinateType the location's type @param success A block object called when the operation succeeds. It returns the event id of the event generated on the homeserver @param failure A block object called when the operation fails. diff --git a/Riot/Modules/Spaces/SpaceMembers/MemberDetail/SpaceMemberDetailCoordinator.swift b/Riot/Modules/Spaces/SpaceMembers/MemberDetail/SpaceMemberDetailCoordinator.swift index a0b466276e..c9a978eb43 100644 --- a/Riot/Modules/Spaces/SpaceMembers/MemberDetail/SpaceMemberDetailCoordinator.swift +++ b/Riot/Modules/Spaces/SpaceMembers/MemberDetail/SpaceMemberDetailCoordinator.swift @@ -50,7 +50,11 @@ final class SpaceMemberDetailCoordinator: NSObject, SpaceMemberDetailCoordinator init(parameters: SpaceMemberDetailCoordinatorParameters) { self.parameters = parameters - let spaceMemberDetailViewModel = SpaceMemberDetailViewModel(userSessionsService: parameters.userSessionsService, session: parameters.session, member: parameters.member, spaceId: parameters.spaceId, showCancelMenuItem: parameters.showCancelMenuItem) + let spaceMemberDetailViewModel = SpaceMemberDetailViewModel(userSessionsService: parameters.userSessionsService, + session: parameters.session, + member: parameters.member, + spaceId: parameters.spaceId, + showCancelMenuItem: parameters.showCancelMenuItem) let spaceMemberDetailViewController = SpaceMemberDetailViewController.instantiate(with: spaceMemberDetailViewModel) spaceMemberDetailViewController.enableMention = true spaceMemberDetailViewController.enableVoipCall = false diff --git a/Riot/Modules/Threads/Beta/ThreadsBetaCoordinatorBridgePresenter.swift b/Riot/Modules/Threads/Beta/ThreadsBetaCoordinatorBridgePresenter.swift index 769f7eff6d..a4b1e256bf 100644 --- a/Riot/Modules/Threads/Beta/ThreadsBetaCoordinatorBridgePresenter.swift +++ b/Riot/Modules/Threads/Beta/ThreadsBetaCoordinatorBridgePresenter.swift @@ -26,7 +26,8 @@ import MatrixSDK /// ThreadsBetaCoordinatorBridgePresenter enables to start ThreadsBetaCoordinator from a view controller. /// This bridge is used while waiting for global usage of coordinator pattern. -/// **WARNING**: This class breaks the Coordinator abstraction and it has been introduced for **Objective-C compatibility only** (mainly for integration in legacy view controllers). Each bridge should be removed once the underlying Coordinator has been integrated by another Coordinator. +/// **WARNING**: This class breaks the Coordinator abstraction and it has been introduced for **Objective-C compatibility only** (mainly for integration in legacy view controllers). +/// Each bridge should be removed once the underlying Coordinator has been integrated by another Coordinator. @objcMembers final class ThreadsBetaCoordinatorBridgePresenter: NSObject { diff --git a/changelog.d/pr-6032.misc b/changelog.d/pr-6032.misc new file mode 100644 index 0000000000..b9a2902ff8 --- /dev/null +++ b/changelog.d/pr-6032.misc @@ -0,0 +1 @@ +Fix some warnings.