removed unused leave room function

This commit is contained in:
Mauro Romito
2025-07-24 19:25:18 +02:00
parent 17ad5c1cbb
commit d664d7f68e

View File

@@ -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;