diff --git a/Riot/Modules/Room/RoomViewController.m b/Riot/Modules/Room/RoomViewController.m index 5ba46c9c2..fbe71630c 100644 --- a/Riot/Modules/Room/RoomViewController.m +++ b/Riot/Modules/Room/RoomViewController.m @@ -2624,23 +2624,6 @@ static CGSize kThreadListBarButtonItemImageSize; } } -- (void)leaveRoom -{ - [self startActivityIndicator]; - - [self.roomDataSource.room leave:^{ - - [self stopActivityIndicator]; - [self notifyDelegateOnLeaveRoomIfNecessary]; - - } failure:^(NSError *error) { - - [self stopActivityIndicator]; - MXLogDebug(@"[RoomVC] Failed to reject an invited room (%@) failed", self.roomDataSource.room.roomId); - - }]; -} - - (void)notifyDelegateOnLeaveRoomIfNecessary { if (isRoomLeft) { return;