Skip to content

Commit

Permalink
v0.4-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Vaidyam committed Jul 1, 2016
1 parent 3e0c917 commit 26f4f84
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 14 deletions.
13 changes: 13 additions & 0 deletions Hangouts/ConversationList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@ import Foundation
import class ParrotServiceExtension.Wrapper

public protocol ConversationListDelegate {
/*
conversationNotification(note)
eventNotification(note)
focusNotification(note)
typingNotification(note)
notificationLevelNotification(note)
watermarkNotification(note)
viewModification(note)
selfPresenceNotification(note)
deleteNotification(note)
presenceNotification(note)
*/

func conversationList(_ list: ConversationList, didReceiveEvent event: IEvent)
func conversationList(_ list: ConversationList, didChangeTypingStatusTo status: TypingType)
func conversationList(_ list: ConversationList, didReceiveWatermarkNotification status: IWatermarkNotification)
Expand Down
1 change: 0 additions & 1 deletion Parrot/ConversationViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -336,5 +336,4 @@ class ConversationViewController: NSViewController, ConversationDelegate, NSText
}
sendQ.async(execute: operation)
}

}
11 changes: 10 additions & 1 deletion Parrot/ConversationsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,16 @@ class ConversationsViewController: NSViewController, ConversationListDelegate {
return self.conversationList?.conversations.map { _getPerson($0) }
}

func conversationList(_ list: ConversationList, didReceiveEvent event: IEvent) {}
func conversationList(_ list: ConversationList, didReceiveEvent event: IEvent) {
guard event is IChatMessageEvent else { return }

// pls fix :(
DispatchQueue.main.async {
self.personsView.dataSource = self._getAllPersons()!.map { Wrapper.init($0) }
UserNotificationCenter.updateDockBadge(self.conversationList?.unreadEventCount ?? 0)
}
}

func conversationList(_ list: ConversationList, didChangeTypingStatusTo status: TypingType) {}
func conversationList(_ list: ConversationList, didReceiveWatermarkNotification status: IWatermarkNotification) {}

Expand Down
24 changes: 12 additions & 12 deletions Parrot/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIconFile</key>
Expand All @@ -14,32 +16,30 @@
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundleDisplayName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>v0.4-alpha</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>v0.3-alpha</string>
<key>CFBundleVersion</key>
<string>v0.3-alpha</string>
<string>247</string>
<key>GithubRepository</key>
<string>avaidyam/Parrot</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.social-networking</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 - 2016 Aditya Vaidyam. All rights reserved.</string>
<key>NSMainStoryboardFile</key>
<string>Main</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>GithubRepository</key>
<string>avaidyam/Parrot</string>
</dict>
</plist>

0 comments on commit 26f4f84

Please sign in to comment.