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

Removed old hacks that were showing the entire timeline every time a new message was received.

parent 66ce5d21
......@@ -148,15 +148,16 @@ class TimelineViewController: NSViewController, WKNavigationDelegate
/* as */ notification in
println("All friends timeline was updated from Pulse / Node.")
println("NOT DOING ANYTHING. SEE WHAT THIS BREAKS.")
// For now, only update the timeline if it is the current one.
// TODO: in the future we could display a badge.
if CurrentTimeline.id == "allfriends"
{
println("All friends is the current timeline. Refreshing it.")
self.showTimeline(Timelines.sharedInstance[.AllFriends]!)
}
// if CurrentTimeline.id == "allfriends"
// {
// println("All friends is the current timeline. Refreshing it.")
// self.showTimeline(Timelines.sharedInstance[.AllFriends]!)
// }
}
//
......@@ -169,22 +170,23 @@ class TimelineViewController: NSViewController, WKNavigationDelegate
/* as */ notification in
println("Conversation timeline updated from Pulse / Node.")
println(notification)
if let userInfo = notification.userInfo, data:AnyObject = userInfo["data"], repo = data["repo"] as? String
{
println("Repo: \(repo)")
let components = repo.componentsSeparatedByString("-to")
if components.count > 0
{
let timeline = components[0]
// NOTE: This will fail if we get this call when we’re on the wrong timeline.
// TODO FIX !!!
println("ℹ️ About to show conversation timeline: \(timeline)")
self.showTimeline(self.currentTimeline)
}
}
println("NOT DOING ANYTHING. SEE WHAT THIS BREAKS.")
// println(notification)
//
// if let userInfo = notification.userInfo, data:AnyObject = userInfo["data"], repo = data["repo"] as? String
// {
// println("Repo: \(repo)")
// let components = repo.componentsSeparatedByString("-to")
//
// if components.count > 0
// {
// let timeline = components[0]
// // NOTE: This will fail if we get this call when we’re on the wrong timeline.
// // TODO FIX !!!
// println("ℹ️ About to show conversation timeline: \(timeline)")
// self.showTimeline(self.currentTimeline)
// }
// }
}
......@@ -197,7 +199,7 @@ class TimelineViewController: NSViewController, WKNavigationDelegate
{
/* as */ notification in
// println("Received TimelineNavigationRequestNotification: \(notification)…")
println("Received TimelineNavigationRequestNotification: \(notification)…")
if let userInfo = notification.userInfo, timeline = userInfo["timeline"] as? Timeline
{
......
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