Skip to content

Commit 56013d2

Browse files
committed
fix: add nil check to prevent crash when adding room.token to dictionary
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
1 parent f49fdbc commit 56013d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NextcloudTalk/RoomsTableViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ - (void)createRoomForSelectedUser:(NCUser *)user
12961296
ofType:kNCRoomTypeOneToOne
12971297
andName:nil
12981298
completionBlock:^(NCRoom *room, NSError *error) {
1299-
if (!error) {
1299+
if (!error && room.token != nil) {
13001300
[self.navigationController dismissViewControllerAnimated:YES completion:^{
13011301
[[NSNotificationCenter defaultCenter] postNotificationName:NCSelectedUserForChatNotification
13021302
object:self

0 commit comments

Comments
 (0)