mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Category identifier for call invites
This commit is contained in:
parent
eec3bd9c01
commit
b25c0710db
2 changed files with 5 additions and 0 deletions
|
@ -19,5 +19,6 @@ import Foundation
|
|||
enum Constants {
|
||||
|
||||
static let toBeRemovedNotificationCategoryIdentifier = "TO_BE_REMOVED"
|
||||
static let callNotificationsCategoryIdentifier = "CALL"
|
||||
|
||||
}
|
||||
|
|
|
@ -543,6 +543,10 @@ class NotificationService: UNNotificationServiceExtension {
|
|||
return nil
|
||||
}
|
||||
|
||||
if event.eventType == .callInvite {
|
||||
return Constants.callNotificationsCategoryIdentifier
|
||||
}
|
||||
|
||||
guard event.eventType == .roomMessage || event.eventType == .roomEncrypted else {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue