mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 13:37:11 +00:00
Enable inline replies for push notifications.
This commit is contained in:
parent
b2137ad01d
commit
1c62792813
@ -29,16 +29,16 @@ final class NotificationManager: NSObject, NotificationManagerProtocol {
|
||||
// MARK: NotificationManagerProtocol
|
||||
|
||||
weak var delegate: NotificationManagerDelegate?
|
||||
|
||||
|
||||
func start() {
|
||||
// Not implemented yet
|
||||
// let replyAction = UNTextInputNotificationAction(identifier: NotificationConstants.Action.inlineReply,
|
||||
// title: L10n.actionQuickReply,
|
||||
// options: [])
|
||||
let replyAction = UNTextInputNotificationAction(identifier: NotificationConstants.Action.inlineReply,
|
||||
title: L10n.actionQuickReply,
|
||||
options: [])
|
||||
let messageCategory = UNNotificationCategory(identifier: NotificationConstants.Category.message,
|
||||
actions: [],
|
||||
actions: [replyAction],
|
||||
intentIdentifiers: [],
|
||||
options: [])
|
||||
|
||||
let inviteCategory = UNNotificationCategory(identifier: NotificationConstants.Category.invite,
|
||||
actions: [],
|
||||
intentIdentifiers: [],
|
||||
|
@ -108,15 +108,16 @@ final class NotificationManagerTests: XCTestCase {
|
||||
XCTAssertEqual(request.content.title, "Title")
|
||||
XCTAssertEqual(request.content.subtitle, "Subtitle")
|
||||
}
|
||||
|
||||
|
||||
func test_whenStart_notificationCategoriesAreSet() throws {
|
||||
// let replyAction = UNTextInputNotificationAction(identifier: NotificationConstants.Action.inlineReply,
|
||||
// title: L10n.actionQuickReply,
|
||||
// options: [])
|
||||
let replyAction = UNTextInputNotificationAction(identifier: NotificationConstants.Action.inlineReply,
|
||||
title: L10n.actionQuickReply,
|
||||
options: [])
|
||||
let messageCategory = UNNotificationCategory(identifier: NotificationConstants.Category.message,
|
||||
actions: [],
|
||||
actions: [replyAction],
|
||||
intentIdentifiers: [],
|
||||
options: [])
|
||||
|
||||
let inviteCategory = UNNotificationCategory(identifier: NotificationConstants.Category.invite,
|
||||
actions: [],
|
||||
intentIdentifiers: [],
|
||||
|
Loading…
x
Reference in New Issue
Block a user