Keep old mute behaviour enabled on slide menu and long press when new build setting is not enabled.

This commit is contained in:
langleyd
2021-07-06 11:59:54 +01:00
parent 97496f93ea
commit fe6a1953bd
3 changed files with 85 additions and 4 deletions
+18 -2
View File
@@ -347,7 +347,15 @@
tableViewCell.notificationsButton.tag = room.isMute || room.isMentionsOnly;
[tableViewCell.notificationsButton addTarget:self action:@selector(onNotificationsButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
tableViewCell.notificationsImageView.image = tableViewCell.notificationsButton.tag ? [UIImage imageNamed:@"room_action_notification_muted"] : [UIImage imageNamed:@"room_action_notification"];
if ([BuildSettings roomSettingsScreenShowNotificationsV2])
{
tableViewCell.notificationsImageView.image = tableViewCell.notificationsButton.tag ? [UIImage imageNamed:@"room_action_notification_muted"] : [UIImage imageNamed:@"room_action_notification"];
}
else
{
tableViewCell.notificationsImageView.image = [UIImage imageNamed:@"room_action_notification"];
}
tableViewCell.notificationsImageView.tintColor = tableViewCell.notificationsButton.tag ? unselectedColor : selectedColor;
@@ -664,7 +672,15 @@
MXRoom *room = [self.mainSession roomWithRoomId:editedRoomId];
if (room)
{
[self changeEditedRoomNotificationSettings];
if ([BuildSettings roomSettingsScreenShowNotificationsV2])
{
[self changeEditedRoomNotificationSettings];
}
else
{
UIButton *button = (UIButton*)sender;
[self muteEditedRoomNotifications:!button.tag];
}
}
}
}