mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Do not display reply action in the recap notif on Mac
This commit is contained in:
parent
818e205134
commit
7e85e9b12b
1 changed files with 12 additions and 4 deletions
|
@ -106,10 +106,18 @@ void NotificationsManager::objCxxPostNotification(
|
|||
textInputButtonTitle:sendStr.toNSString()
|
||||
textInputPlaceholder:placeholder.toNSString()];
|
||||
|
||||
UNNotificationCategory* category = [UNNotificationCategory categoryWithIdentifier:@"ReplyCategory"
|
||||
actions:@[ replyAction ]
|
||||
intentIdentifiers:@[]
|
||||
options:UNNotificationCategoryOptionNone];
|
||||
UNNotificationCategory* category;
|
||||
if(!room_id.isEmpty()){
|
||||
category = [UNNotificationCategory categoryWithIdentifier:@"ReplyCategory"
|
||||
actions:@[ replyAction ]
|
||||
intentIdentifiers:@[]
|
||||
options:UNNotificationCategoryOptionNone];
|
||||
}else{
|
||||
category = [UNNotificationCategory categoryWithIdentifier:@"ReplyCategory"
|
||||
actions:@[]
|
||||
intentIdentifiers:@[]
|
||||
options:UNNotificationCategoryOptionNone];
|
||||
}
|
||||
|
||||
NSString* title = room_name.toNSString();
|
||||
NSString* sub = subtitle.toNSString();
|
||||
|
|
Loading…
Reference in a new issue