mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Periphery cleanup (#5893)
This commit is contained in:
@@ -12,7 +12,6 @@ import UserNotifications
|
||||
|
||||
nonisolated struct NotificationItemProxy: NotificationItemProxyProtocol {
|
||||
let notificationItem: NotificationItem
|
||||
let eventID: String
|
||||
let receiverID: String
|
||||
let roomID: String
|
||||
|
||||
@@ -41,10 +40,6 @@ nonisolated struct NotificationItemProxy: NotificationItemProxyProtocol {
|
||||
notificationItem.roomInfo.isSpace
|
||||
}
|
||||
|
||||
var isRoomDirect: Bool {
|
||||
notificationItem.roomInfo.isDirect
|
||||
}
|
||||
|
||||
var isDM: Bool {
|
||||
notificationItem.roomInfo.isDm
|
||||
}
|
||||
@@ -58,10 +53,6 @@ nonisolated struct NotificationItemProxy: NotificationItemProxyProtocol {
|
||||
}
|
||||
}
|
||||
|
||||
var roomJoinedMembers: Int {
|
||||
Int(notificationItem.roomInfo.joinedMembersCount)
|
||||
}
|
||||
|
||||
var isNoisy: Bool {
|
||||
notificationItem.isNoisy ?? false
|
||||
}
|
||||
@@ -92,8 +83,6 @@ nonisolated struct NotificationItemProxy: NotificationItemProxyProtocol {
|
||||
}
|
||||
|
||||
nonisolated struct EmptyNotificationItemProxy: NotificationItemProxyProtocol {
|
||||
let eventID: String
|
||||
|
||||
var event: NotificationEvent? {
|
||||
nil
|
||||
}
|
||||
@@ -122,10 +111,6 @@ nonisolated struct EmptyNotificationItemProxy: NotificationItemProxyProtocol {
|
||||
false
|
||||
}
|
||||
|
||||
var isRoomDirect: Bool {
|
||||
false
|
||||
}
|
||||
|
||||
var isDM: Bool {
|
||||
false
|
||||
}
|
||||
@@ -142,10 +127,6 @@ nonisolated struct EmptyNotificationItemProxy: NotificationItemProxyProtocol {
|
||||
nil
|
||||
}
|
||||
|
||||
var roomJoinedMembers: Int {
|
||||
0
|
||||
}
|
||||
|
||||
var hasMention: Bool {
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user