mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Silence some warnings. (#4747)
This commit is contained in:
@@ -111,7 +111,7 @@ struct AttributedStringBuilder: AttributedStringBuilderProtocol {
|
||||
|
||||
// MARK: - Private
|
||||
|
||||
// swiftlint:disable:next function_body_length
|
||||
// swiftlint:disable:next function_body_length cyclomatic_complexity
|
||||
func attributedString(element: Element,
|
||||
documentBody: Element,
|
||||
preserveFormatting: Bool,
|
||||
|
||||
@@ -51,6 +51,14 @@ extension SDKListener: VerificationStateListener where T == VerificationState {
|
||||
func onUpdate(status: VerificationState) { onUpdateClosure(status) }
|
||||
}
|
||||
|
||||
extension SDKListener: IgnoredUsersListener where T == [String] {
|
||||
func call(ignoredUserIds: [String]) { onUpdateClosure(ignoredUserIds) }
|
||||
}
|
||||
|
||||
extension SDKListener: SendQueueRoomErrorListener where T == (String, ClientError) {
|
||||
func onError(roomId: String, error: ClientError) { onUpdateClosure((roomId, error)) }
|
||||
}
|
||||
|
||||
// MARK: SecureBackupController
|
||||
|
||||
extension SDKListener: BackupStateListener where T == BackupState {
|
||||
@@ -107,6 +115,18 @@ extension SDKListener: CallDeclineListener where T == String {
|
||||
func call(declinerUserId: String) { onUpdateClosure(declinerUserId) }
|
||||
}
|
||||
|
||||
extension SDKListener: TypingNotificationsListener where T == [String] {
|
||||
func call(typingUserIds: [String]) { onUpdateClosure(typingUserIds) }
|
||||
}
|
||||
|
||||
extension SDKListener: IdentityStatusChangeListener where T == [IdentityStatusChange] {
|
||||
func call(identityStatusChange: [IdentityStatusChange]) { onUpdateClosure(identityStatusChange) }
|
||||
}
|
||||
|
||||
extension SDKListener: KnockRequestsListener where T == [KnockRequest] {
|
||||
func call(joinRequests: [KnockRequest]) { onUpdateClosure(joinRequests) }
|
||||
}
|
||||
|
||||
// MARK: TimelineProxy
|
||||
|
||||
extension SDKListener: PaginationStatusListener where T == RoomPaginationStatus {
|
||||
|
||||
Reference in New Issue
Block a user