Remove unused removeDeliveredInviteNotifications NotificationManager method

This commit is contained in:
Stefan Ceriu
2025-04-17 13:12:11 +03:00
committed by Stefan Ceriu
parent aaed6db0ea
commit c33a164354
3 changed files with 0 additions and 44 deletions
@@ -129,14 +129,6 @@ final class NotificationManager: NSObject, NotificationManagerProtocol {
notificationCenter.removeDeliveredNotifications(withIdentifiers: notificationsIdentifiers)
}
func removeDeliveredInviteNotifications() async {
let notificationsIdentifiers = await notificationCenter
.deliveredNotifications()
.filter { $0.request.content.categoryIdentifier == NotificationConstants.Category.invite }
.map(\.request.identifier)
notificationCenter.removeDeliveredNotifications(withIdentifiers: notificationsIdentifiers)
}
private func setPusher(with deviceToken: Data, clientProxy: ClientProxyProtocol) async -> Bool {
do {
let defaultPayload = APNSPayload(aps: APSInfo(mutableContent: 1,
@@ -33,5 +33,4 @@ protocol NotificationManagerProtocol: AnyObject {
func requestAuthorization()
func removeDeliveredMessageNotifications(for roomID: String) async
func removeDeliveredInviteNotifications() async
}