0.10.6
This commit is contained in:
commit
92660a4ba0
228 files changed
+24496
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import Foundation
|
||||
|
||||
enum NotificationPolicy {
|
||||
static func shouldPresentMessage(
|
||||
inserted: Bool,
|
||||
isOutgoing: Bool,
|
||||
appIsActive: Bool,
|
||||
selectedConversationID: String?,
|
||||
conversationID: String
|
||||
) -> Bool {
|
||||
guard inserted, !isOutgoing else { return false }
|
||||
guard appIsActive else { return true }
|
||||
return selectedConversationID?.lowercased() != conversationID.lowercased()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user