Skip to content

Commit

Permalink
Remove voice broadcast chunk notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle committed Jan 4, 2023
1 parent a8e2ec0 commit 6b3eeaa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RiotNSE/NotificationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,11 @@ class NotificationService: UNNotificationServiceExtension {
return Constants.callInviteNotificationCategoryIdentifier
}

// Ignore voice broadcast chunk event
if event.eventType == .roomMessage && event.content[VoiceBroadcastSettings.voiceBroadcastContentKeyChunkType] != nil {
return Constants.toBeRemovedNotificationCategoryIdentifier
}

guard event.eventType == .roomMessage || event.eventType == .roomEncrypted else {
return Constants.toBeRemovedNotificationCategoryIdentifier
}
Expand Down

0 comments on commit 6b3eeaa

Please sign in to comment.