room_photo_selection

-> swipe on invited room should not display any action.
This commit is contained in:
yannick 2015-12-16 17:17:02 +01:00
parent 9ddd479772
commit e2cf0564eb

View file

@ -325,11 +325,18 @@ static NSMutableDictionary* backgroundByImageNameDict;
- (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath
{
NSMutableArray* actions = [[NSMutableArray alloc] init];
MXRoom* room = [self.dataSource getRoomAtIndexPath:indexPath];
if (room)
{
NSArray* invitedRooms = room.mxSession.invitedRooms;
// display no action for the invited room
if (invitedRooms && ([invitedRooms indexOfObject:room] != NSNotFound))
{
return actions;
}
NSString* title = @" ";
// pushes settings