Do not display reply action in the recap notif on Mac

This commit is contained in:
LcsTen 2023-03-27 15:44:53 +02:00
parent 818e205134
commit 7e85e9b12b

View file

@ -106,10 +106,18 @@ void NotificationsManager::objCxxPostNotification(
textInputButtonTitle:sendStr.toNSString() textInputButtonTitle:sendStr.toNSString()
textInputPlaceholder:placeholder.toNSString()]; textInputPlaceholder:placeholder.toNSString()];
UNNotificationCategory* category = [UNNotificationCategory categoryWithIdentifier:@"ReplyCategory" UNNotificationCategory* category;
actions:@[ replyAction ] if(!room_id.isEmpty()){
intentIdentifiers:@[] category = [UNNotificationCategory categoryWithIdentifier:@"ReplyCategory"
options:UNNotificationCategoryOptionNone]; actions:@[ replyAction ]
intentIdentifiers:@[]
options:UNNotificationCategoryOptionNone];
}else{
category = [UNNotificationCategory categoryWithIdentifier:@"ReplyCategory"
actions:@[]
intentIdentifiers:@[]
options:UNNotificationCategoryOptionNone];
}
NSString* title = room_name.toNSString(); NSString* title = room_name.toNSString();
NSString* sub = subtitle.toNSString(); NSString* sub = subtitle.toNSString();