Add entry points at long press on home view and slide on recents.

This commit is contained in:
langleyd
2021-07-02 20:19:46 +01:00
parent 45cfcf3cc3
commit 6a48bacd36
11 changed files with 156 additions and 39 deletions
+3 -3
View File
@@ -347,7 +347,8 @@
tableViewCell.notificationsButton.tag = room.isMute || room.isMentionsOnly;
[tableViewCell.notificationsButton addTarget:self action:@selector(onNotificationsButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
tableViewCell.notificationsImageView.image = [UIImage imageNamed:@"room_action_notification"];
tableViewCell.notificationsImageView.image = tableViewCell.notificationsButton.tag ? [UIImage imageNamed:@"room_action_notification_muted"] : [UIImage imageNamed:@"room_action_notification"];
tableViewCell.notificationsImageView.tintColor = tableViewCell.notificationsButton.tag ? unselectedColor : selectedColor;
// Get the room tag (use only the first one).
@@ -663,8 +664,7 @@
MXRoom *room = [self.mainSession roomWithRoomId:editedRoomId];
if (room)
{
UIButton *button = (UIButton*)sender;
[self muteEditedRoomNotifications:!button.tag];
[self changeEditedRoomNotificationSettings];
}
}
}