mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Add push notification body for poll.end
This commit is contained in:
parent
7a3fe14963
commit
5893d516fb
1 changed files with 7 additions and 2 deletions
|
@ -561,14 +561,19 @@ class NotificationService: UNNotificationServiceExtension {
|
|||
additionalUserInfo = [Constants.userInfoKeyPresentNotificationOnForeground: true]
|
||||
}
|
||||
}
|
||||
|
||||
case .pollStart:
|
||||
notificationTitle = self.messageTitle(for: eventSenderName, in: roomDisplayName)
|
||||
notificationBody = MXEventContentPollStart(fromJSON: event.content)?.question
|
||||
|
||||
case .pollEnd:
|
||||
notificationTitle = self.messageTitle(for: eventSenderName, in: roomDisplayName)
|
||||
notificationBody = VectorL10n.pollTimelineEndedText
|
||||
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
||||
|
||||
self.validateNotificationContentAndComplete(
|
||||
notificationTitle: notificationTitle,
|
||||
notificationBody: notificationBody,
|
||||
|
|
Loading…
Reference in a new issue