This commit is contained in:
John Preston 2015-09-10 14:20:50 +03:00
commit 00783d116a
1 changed files with 7 additions and 3 deletions

View File

@ -289,12 +289,16 @@ void PsMacWindowPrivate::showNotify(uint64 peer, int32 msgId, const QPixmap &pix
[notification setTitle:QNSString(title).s()];
[notification setSubtitle:QNSString(subtitle).s()];
[notification setInformativeText:QNSString(msg).s()];
[notification setContentImage:img];
if ([notification respondsToSelector:@selector(setContentImage:)]) {
[notification setContentImage:img];
}
if (withReply) [notification setHasReplyButton:YES];
if (withReply && [notification respondsToSelector:@selector(setHasReplyButton:)]) {
[notification setHasReplyButton:YES];
}
[notification setSoundName:nil];
NSUserNotificationCenter *center = [NSUserNotificationCenter defaultUserNotificationCenter];
[center deliverNotification:notification];