From f33a3e3e2bef8e3a308f9d5549db1e44cb9f774e Mon Sep 17 00:00:00 2001 From: manuroe Date: Tue, 2 May 2017 15:59:58 +0200 Subject: [PATCH] Home "+" button: Add "Join room" option --- Riot/ViewController/RecentsViewController.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Riot/ViewController/RecentsViewController.m b/Riot/ViewController/RecentsViewController.m index 99e1c43ea..071596791 100644 --- a/Riot/ViewController/RecentsViewController.m +++ b/Riot/ViewController/RecentsViewController.m @@ -1652,7 +1652,7 @@ self->currentRequest = [self.mainSession joinRoom:textField.text success:^(MXRoom *room) { - currentRequest = nil; + self->currentRequest = nil; [self.activityIndicator stopAnimating]; // Show the room @@ -1660,11 +1660,12 @@ } failure:^(NSError *error) { - currentRequest = nil; + NSLog(@"[RecentsViewController] Join joinARoom (%@) failed", roomAliasOrId); + + self->currentRequest = nil; [self.activityIndicator stopAnimating]; - NSLog(@"[Vector RoomVC] Join joinARoom (%@) failed", roomAliasOrId); - //Alert user + // Alert user [[AppDelegate theDelegate] showErrorAsAlert:error]; }]; }