diff --git a/quassel-for-ios/quassel-for-ios/AppDelegate.m b/quassel-for-ios/quassel-for-ios/AppDelegate.m index cd64c65..91fc969 100644 --- a/quassel-for-ios/quassel-for-ios/AppDelegate.m +++ b/quassel-for-ios/quassel-for-ios/AppDelegate.m @@ -445,6 +445,11 @@ - (void) popToLoginAndShowError:(NSString*)errorMsg } } +- (void) quasselFullyConnected +{ + +} + - (void) doReconnectIfNecessary { if (shouldAutoReconnect diff --git a/quassel-for-ios/quassel-for-ios/QuasselCoreConnection.m b/quassel-for-ios/quassel-for-ios/QuasselCoreConnection.m index 511e41f..54853d0 100644 --- a/quassel-for-ios/quassel-for-ios/QuasselCoreConnection.m +++ b/quassel-for-ios/quassel-for-ios/QuasselCoreConnection.m @@ -249,12 +249,10 @@ - (void) handleReceivedNetworkInit:(NSArray*)networkInit } -// networkInitsReceived++; -// if (networkInitsReceived == neworkIdList.count ) { -// [delegate quasselAllNetworkInitReceived]; -// } else { -// [delegate quasselNetworkInitReceived:networkName]; -// } + networkInitsReceived++; + if (networkInitsReceived == neworkIdList.count ) { + [delegate quasselFullyConnected]; + } } diff --git a/quassel-for-ios/quassel-for-ios/QuasselCoreConnectionDelegate.h b/quassel-for-ios/quassel-for-ios/QuasselCoreConnectionDelegate.h index 7f66b33..e50f514 100644 --- a/quassel-for-ios/quassel-for-ios/QuasselCoreConnectionDelegate.h +++ b/quassel-for-ios/quassel-for-ios/QuasselCoreConnectionDelegate.h @@ -15,7 +15,8 @@ - (void) quasselAuthenticated; - (void) quasselBufferListReceived; - (void) quasselNetworkInitReceived:(NSString*)networkName; -- (void) quasselAllNetworkInitReceived; +- (void) quasselAllNetworkInitReceived; // FIXME: misnomer since we have quasselFullyConnected +- (void) quasselFullyConnected; - (void) quasselBufferListUpdated; - (void) quasselSocketDidDisconnect:(NSString*)msg;