Skip to content

Commit 26f4f84

Browse files
author
Aditya Vaidyam
committed
v0.4-alpha
1 parent 3e0c917 commit 26f4f84

4 files changed

Lines changed: 35 additions & 14 deletions

File tree

Hangouts/ConversationList.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@ import Foundation
22
import class ParrotServiceExtension.Wrapper
33

44
public protocol ConversationListDelegate {
5+
/*
6+
conversationNotification(note)
7+
eventNotification(note)
8+
focusNotification(note)
9+
typingNotification(note)
10+
notificationLevelNotification(note)
11+
watermarkNotification(note)
12+
viewModification(note)
13+
selfPresenceNotification(note)
14+
deleteNotification(note)
15+
presenceNotification(note)
16+
*/
17+
518
func conversationList(_ list: ConversationList, didReceiveEvent event: IEvent)
619
func conversationList(_ list: ConversationList, didChangeTypingStatusTo status: TypingType)
720
func conversationList(_ list: ConversationList, didReceiveWatermarkNotification status: IWatermarkNotification)

Parrot/ConversationViewController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,5 +336,4 @@ class ConversationViewController: NSViewController, ConversationDelegate, NSText
336336
}
337337
sendQ.async(execute: operation)
338338
}
339-
340339
}

Parrot/ConversationsViewController.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,16 @@ class ConversationsViewController: NSViewController, ConversationListDelegate {
169169
return self.conversationList?.conversations.map { _getPerson($0) }
170170
}
171171

172-
func conversationList(_ list: ConversationList, didReceiveEvent event: IEvent) {}
172+
func conversationList(_ list: ConversationList, didReceiveEvent event: IEvent) {
173+
guard event is IChatMessageEvent else { return }
174+
175+
// pls fix :(
176+
DispatchQueue.main.async {
177+
self.personsView.dataSource = self._getAllPersons()!.map { Wrapper.init($0) }
178+
UserNotificationCenter.updateDockBadge(self.conversationList?.unreadEventCount ?? 0)
179+
}
180+
}
181+
173182
func conversationList(_ list: ConversationList, didChangeTypingStatusTo status: TypingType) {}
174183
func conversationList(_ list: ConversationList, didReceiveWatermarkNotification status: IWatermarkNotification) {}
175184

Parrot/Info.plist

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
66
<string>en</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>$(PRODUCT_NAME)</string>
79
<key>CFBundleExecutable</key>
810
<string>$(EXECUTABLE_NAME)</string>
911
<key>CFBundleIconFile</key>
@@ -14,32 +16,30 @@
1416
<string>6.0</string>
1517
<key>CFBundleName</key>
1618
<string>$(PRODUCT_NAME)</string>
17-
<key>CFBundleDisplayName</key>
18-
<string>$(PRODUCT_NAME)</string>
1919
<key>CFBundlePackageType</key>
2020
<string>APPL</string>
21+
<key>CFBundleShortVersionString</key>
22+
<string>v0.4-alpha</string>
2123
<key>CFBundleSignature</key>
2224
<string>????</string>
23-
<key>CFBundleShortVersionString</key>
24-
<string>v0.3-alpha</string>
2525
<key>CFBundleVersion</key>
26-
<string>v0.3-alpha</string>
26+
<string>247</string>
27+
<key>GithubRepository</key>
28+
<string>avaidyam/Parrot</string>
2729
<key>LSApplicationCategoryType</key>
2830
<string>public.app-category.social-networking</string>
2931
<key>LSMinimumSystemVersion</key>
3032
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
33+
<key>NSAppTransportSecurity</key>
34+
<dict>
35+
<key>NSAllowsArbitraryLoads</key>
36+
<true/>
37+
</dict>
3138
<key>NSHumanReadableCopyright</key>
3239
<string>Copyright © 2015 - 2016 Aditya Vaidyam. All rights reserved.</string>
3340
<key>NSMainStoryboardFile</key>
3441
<string>Main</string>
3542
<key>NSPrincipalClass</key>
3643
<string>NSApplication</string>
37-
<key>NSAppTransportSecurity</key>
38-
<dict>
39-
<key>NSAllowsArbitraryLoads</key>
40-
<true/>
41-
</dict>
42-
<key>GithubRepository</key>
43-
<string>avaidyam/Parrot</string>
4444
</dict>
4545
</plist>

0 commit comments

Comments
 (0)