mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
18 lines
603 B
Swift
18 lines
603 B
Swift
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
import SignalServiceKit
|
|
|
|
@objc
|
|
public class NoopNotificationsManager: NSObject, NotificationsProtocol {
|
|
|
|
public func notifyUser(for incomingMessage: TSIncomingMessage!, in thread: TSThread!, contactsManager: ContactsManagerProtocol!, transaction: YapDatabaseReadTransaction!) {
|
|
owsFail("\(self.logTag) in \(#function).")
|
|
}
|
|
|
|
public func notifyUser(for error: TSErrorMessage!, in thread: TSThread!) {
|
|
Logger.warn("\(self.logTag) in \(#function), skipping notification for: \(error.description)")
|
|
}
|
|
}
|