Ind.ie is now Small Technology Foundation.
Commit 97953298 authored by Aral Balkan's avatar Aral Balkan

Cleaned up the source a bit (native notifications).

parent a7f5d4c9
......@@ -75,7 +75,7 @@ public class NativeNotification: NSObject, NSUserNotificationCenterDelegate
notification in
println("GOT ALL FRIENDS NOTIFICATION!!!!!!!!!!!!!!")
println("Received all friends notification.")
println(notification)
if let userInfo = notification.userInfo, data:AnyObject = userInfo["data"], repo = data["repo"] as? String, name = data["name"] as? String
......@@ -94,7 +94,6 @@ public class NativeNotification: NSObject, NSUserNotificationCenterDelegate
let n:NSUserNotification = NSUserNotification()
n.title = fromPerson + " (to all friends)"
// n.hasActionButton = true
n.informativeText = messageWithoutHTML
// Reply button
......@@ -119,9 +118,6 @@ public class NativeNotification: NSObject, NSUserNotificationCenterDelegate
n.contentImage = contentImage
}
}
// n.actionButtonTitle = "View"
// n.otherButtonTitle = "Dismiss"
//
// Display the sender’s profile photo (in place of the app’s identity image).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment