Join created room after dismissing room creation view.

Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Ivan Sein 2018-06-21 11:26:30 +02:00
Родитель ee7083a698
Коммит dff2469cb8
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -243,10 +243,11 @@ NSString * const NCRoomCreatedNotification = @"NCRoomCreatedNotification";
- (void)finishRoomCreation
{
[self.navigationController dismissViewControllerAnimated:YES completion:nil];
[[NSNotificationCenter defaultCenter] postNotificationName:NCRoomCreatedNotification
object:self
userInfo:@{@"token":_createdRoomToken}];
[self.navigationController dismissViewControllerAnimated:YES completion:^{
[[NSNotificationCenter defaultCenter] postNotificationName:NCRoomCreatedNotification
object:self
userInfo:@{@"token":_createdRoomToken}];
}];
}
- (void)cancelRoomCreation