session-ios/SignalUtilitiesKit/Utilities/NoopNotificationsManager.swift

28 lines
848 B
Swift

//
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
//
@objc
public class NoopNotificationsManager: NSObject, NotificationsProtocol {
public func notifyUser(for incomingMessage: TSIncomingMessage, in thread: TSThread, transaction: YapDatabaseReadTransaction) {
owsFailDebug("")
}
public func notifyUser(forIncomingCall callInfoMessage: TSInfoMessage, in thread: TSThread, transaction: YapDatabaseReadTransaction) {
owsFailDebug("")
}
public func notifyUser(forReaction reactMessage: ReactMessage, in thread: TSThread, transaction: YapDatabaseReadTransaction) {
owsFailDebug("")
}
public func cancelNotification(_ identifier: String) {
owsFailDebug("")
}
public func clearAllNotifications() {
Logger.warn("clearAllNotifications")
}
}