Skip to content

Commit c2bbf9c

Browse files
Ivansssbackportbot[bot]
authored andcommitted
fix: add nil check to prevent crash when adding room.token to dictionary
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
1 parent 1afafd5 commit c2bbf9c

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)