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