Add comments for TODO

This commit is contained in:
kevinzhow
2015-11-03 06:45:50 +08:00
parent d288b3153e
commit b1300a9b8d
2 changed files with 9 additions and 1 deletions
+4 -1
View File
@@ -312,13 +312,16 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}
func sync() {
// TODO App 线
syncFriendshipsAndDoFurtherAction {
syncGroupsAndDoFurtherAction { [weak self] in
self?.syncUnreadMessages() {}
}
}
officialMessages { messagesCount in
println("new officialMessages count: \(messagesCount)")
}
+5
View File
@@ -957,6 +957,8 @@ func syncMessageWithMessageInfo(messageInfo: JSONDictionary, messageAge: Message
let newUser = User()
newUser.userID = senderID
//TODO Sender Stranger
newUser.friendState = UserFriendState.Stranger.rawValue
@@ -980,6 +982,7 @@ func syncMessageWithMessageInfo(messageInfo: JSONDictionary, messageAge: Message
var sendFromGroup: Group? = nil
if let recipientType = messageInfo["recipient_type"] as? String {
if recipientType == "Circle" {
if let groupID = messageInfo["recipient_id"] as? String {
sendFromGroup = groupWithGroupID(groupID, inRealm: realm)
@@ -1001,6 +1004,8 @@ func syncMessageWithMessageInfo(messageInfo: JSONDictionary, messageAge: Message
sendFromGroup = newGroup
// TODO Group
groupWithGroupID(groupID: groupID, failureHandler: nil, completion: { (groupInfo) -> Void in
dispatch_async(realmQueue) {
guard let realmForGroup = try? Realm() else {