Permalink
Browse files

Clear roster when connection disconnects/fails/errors

  • Loading branch information...
1 parent c6cb53a commit 0658f998bbbe2955e6915009ecbaac1c0c630664 @benlangfeld committed Jan 16, 2011
Showing with 11 additions and 0 deletions.
  1. +11 −0 TNStropheClient.j
View
@@ -149,6 +149,17 @@
{
_userPresenceShow = TNStropheContactStatusOffline;
_userPresenceStatus = @"";
+ [roster clear];
+}
+
+- (void)onStropheConnectFail:(id)aConnection
+{
+ [roster clear];
+}
+
+- (void)onStropheError:(id)aConnection
+{
+ [roster clear];
}

0 comments on commit 0658f99

Please sign in to comment.