mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +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()
|
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();
|
||||||
|
|
Loading…
Reference in a new issue