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]
|
additionalUserInfo = [Constants.userInfoKeyPresentNotificationOnForeground: true]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
case .pollStart:
|
case .pollStart:
|
||||||
notificationTitle = self.messageTitle(for: eventSenderName, in: roomDisplayName)
|
notificationTitle = self.messageTitle(for: eventSenderName, in: roomDisplayName)
|
||||||
notificationBody = MXEventContentPollStart(fromJSON: event.content)?.question
|
notificationBody = MXEventContentPollStart(fromJSON: event.content)?.question
|
||||||
|
|
||||||
|
case .pollEnd:
|
||||||
|
notificationTitle = self.messageTitle(for: eventSenderName, in: roomDisplayName)
|
||||||
|
notificationBody = VectorL10n.pollTimelineEndedText
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
self.validateNotificationContentAndComplete(
|
self.validateNotificationContentAndComplete(
|
||||||
notificationTitle: notificationTitle,
|
notificationTitle: notificationTitle,
|
||||||
notificationBody: notificationBody,
|
notificationBody: notificationBody,
|
||||||
|
|
Loading…
Reference in a new issue