Skip to content

Commit 84339b5

Browse files
authored
Merge pull request #2079 from nextcloud/backport/2078/stable21
[stable21] fix: add nil check to prevent crash when adding room.token to dictionary
2 parents 1afafd5 + c2bbf9c commit 84339b5

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
@@ -1307,7 +1307,7 @@ - (void)createRoomForSelectedUser:(NCUser *)user
13071307
ofType:kNCRoomTypeOneToOne
13081308
andName:nil
13091309
completionBlock:^(NCRoom *room, NSError *error) {
1310-
if (!error) {
1310+
if (!error && room.token != nil) {
13111311
[self.navigationController dismissViewControllerAnimated:YES completion:^{
13121312
[[NSNotificationCenter defaultCenter] postNotificationName:NCSelectedUserForChatNotification
13131313
object:self

0 commit comments

Comments
 (0)