mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 15:52:40 +00:00
room_photo_selection
-> swipe on invited room should not display any action.
This commit is contained in:
parent
9ddd479772
commit
e2cf0564eb
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue