From 94fbeeee153b7010586e1d29b0e4f32010a7d87f Mon Sep 17 00:00:00 2001 From: kevinzhow Date: Mon, 2 Nov 2015 20:02:08 +0800 Subject: [PATCH] Temp workaround for group ---- heading release --- Podfile.lock | 2 +- Yep/Info.plist | 2 +- Yep/Services/YepServiceSync.swift | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Podfile.lock b/Podfile.lock index 2c4987f5..1bddf648 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -52,7 +52,7 @@ DEPENDENCIES: EXTERNAL SOURCES: MZFayeClient: - :path: ../CatchLib-iOS/MZFayeClient/ + :path: "../CatchLib-iOS/MZFayeClient/" SPEC CHECKSUMS: 1PasswordExtension: 676a216461ffa9189db66541b5a2465e10ae4743 diff --git a/Yep/Info.plist b/Yep/Info.plist index 169fc74b..e5d2e8d1 100644 --- a/Yep/Info.plist +++ b/Yep/Info.plist @@ -40,7 +40,7 @@ CFBundleVersion - 150 + 152 Fabric APIKey diff --git a/Yep/Services/YepServiceSync.swift b/Yep/Services/YepServiceSync.swift index 4c115487..02af929f 100644 --- a/Yep/Services/YepServiceSync.swift +++ b/Yep/Services/YepServiceSync.swift @@ -503,6 +503,10 @@ func syncGroupsAndDoFurtherAction(furtherAction: () -> Void) { //println("allGroups: \(allGroups)") + if allGroups.count == 0 { // Workaround for empty group + return + } + dispatch_async(realmQueue) { // 先整理出所有的 group 的 groupID