Bug Fix- Messages: swipe is broken when user did try to swipe on invited room

#838
This commit is contained in:
giomfo
2016-11-28 18:03:29 +01:00
parent 58ecbd760c
commit f649b2163e
+19
View File
@@ -809,6 +809,25 @@
}
}
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{
// Invited rooms are not editable.
MXRoom* room = [self getRoomAtIndexPath:indexPath];
if (room)
{
NSArray* invitedRooms = room.mxSession.invitedRooms;
// Display no action for the invited room
if (invitedRooms && ([invitedRooms indexOfObject:room] != NSNotFound))
{
return NO;
}
}
return YES;
}
#pragma mark - drag and drop managemenent
- (BOOL)isDraggableCellAt:(NSIndexPath*)path