mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Update files following swiftformat upgrade
This commit is contained in:
committed by
Stefan Ceriu
parent
fe189fcfed
commit
23062901c0
@@ -7,11 +7,10 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import MatrixRustSDK
|
||||
import UserNotifications
|
||||
|
||||
import Intents
|
||||
import MatrixRustSDK
|
||||
import SwiftUI
|
||||
import UserNotifications
|
||||
import Version
|
||||
|
||||
struct NotificationContentBuilder {
|
||||
@@ -345,7 +344,7 @@ private struct NotificationIcon {
|
||||
}
|
||||
|
||||
let mediaSource: MediaSourceProxy?
|
||||
// Required as the key to set images for groups
|
||||
/// Required as the key to set images for groups
|
||||
let groupInfo: GroupInfo?
|
||||
|
||||
var shouldDisplayAsGroup: Bool {
|
||||
|
||||
@@ -98,27 +98,51 @@ struct EmptyNotificationItemProxy: NotificationItemProxyProtocol {
|
||||
|
||||
let receiverID: String
|
||||
|
||||
var senderID: String { "" }
|
||||
var senderID: String {
|
||||
""
|
||||
}
|
||||
|
||||
var senderDisplayName: String? { nil }
|
||||
var senderDisplayName: String? {
|
||||
nil
|
||||
}
|
||||
|
||||
var roomDisplayName: String { "" }
|
||||
var roomDisplayName: String {
|
||||
""
|
||||
}
|
||||
|
||||
var isNoisy: Bool { false }
|
||||
var isNoisy: Bool {
|
||||
false
|
||||
}
|
||||
|
||||
var isRoomSpace: Bool { false }
|
||||
var isRoomSpace: Bool {
|
||||
false
|
||||
}
|
||||
|
||||
var isRoomDirect: Bool { false }
|
||||
var isRoomDirect: Bool {
|
||||
false
|
||||
}
|
||||
|
||||
var isRoomPrivate: Bool { false }
|
||||
var isRoomPrivate: Bool {
|
||||
false
|
||||
}
|
||||
|
||||
var senderAvatarMediaSource: MediaSourceProxy? { nil }
|
||||
var senderAvatarMediaSource: MediaSourceProxy? {
|
||||
nil
|
||||
}
|
||||
|
||||
var roomAvatarMediaSource: MediaSourceProxy? { nil }
|
||||
var roomAvatarMediaSource: MediaSourceProxy? {
|
||||
nil
|
||||
}
|
||||
|
||||
var roomJoinedMembers: Int { 0 }
|
||||
var roomJoinedMembers: Int {
|
||||
0
|
||||
}
|
||||
|
||||
var hasMention: Bool { false }
|
||||
var hasMention: Bool {
|
||||
false
|
||||
}
|
||||
|
||||
var threadRootEventID: String? { nil }
|
||||
var threadRootEventID: String? {
|
||||
nil
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,8 +40,8 @@ class NotificationServiceExtension: UNNotificationServiceExtension {
|
||||
|
||||
private var cancellables: Set<AnyCancellable> = []
|
||||
|
||||
// We can make the whole NSE a MainActor after https://github.com/swiftlang/swift-evolution/blob/main/proposals/0371-isolated-synchronous-deinit.md
|
||||
// otherwise we wouldn't be able to log the tag in the deinit.
|
||||
/// We can make the whole NSE a MainActor after https://github.com/swiftlang/swift-evolution/blob/main/proposals/0371-isolated-synchronous-deinit.md
|
||||
/// otherwise we wouldn't be able to log the tag in the deinit.
|
||||
deinit {
|
||||
ExtensionLogger.logMemory(with: tag)
|
||||
MXLog.info("\(tag) deinit")
|
||||
|
||||
Reference in New Issue
Block a user