mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 21:26:57 +02:00
mute_room_notifications
The room notification "mute" button is displayed even if there is a "always notify" room rule.
This commit is contained in:
@@ -471,22 +471,20 @@ static NSMutableDictionary* backgroundByImageNameDict;
|
||||
|
||||
if (room)
|
||||
{
|
||||
if ([self.dataSource canSuspendRoomNotificationsAtIndexPath:indexPath])
|
||||
{
|
||||
// pushes settings
|
||||
BOOL isMuted = ![self.dataSource isRoomNotifiedAtIndexPath:indexPath];
|
||||
|
||||
// pushes settings
|
||||
BOOL isMuted = ![self.dataSource isRoomNotifiedAtIndexPath:indexPath];
|
||||
|
||||
NSString* pushMessage = !isMuted ? @"Mute" : @"Unmute";
|
||||
|
||||
UITableViewRowAction *muteAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleNormal title:pushMessage handler:^(UITableViewRowAction *action, NSIndexPath *indexPath){
|
||||
|
||||
NSString* pushMessage = !isMuted ? @"Mute" : @"Unmute";
|
||||
|
||||
UITableViewRowAction *muteAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleNormal title:pushMessage handler:^(UITableViewRowAction *action, NSIndexPath *indexPath){
|
||||
|
||||
[self muteRoomNotifications:!isMuted atIndexPath:indexPath];
|
||||
|
||||
}];
|
||||
|
||||
muteAction.backgroundColor = [self getBackgroundColor:nil];
|
||||
[actions insertObject:muteAction atIndex:0];
|
||||
}
|
||||
[self muteRoomNotifications:!isMuted atIndexPath:indexPath];
|
||||
|
||||
}];
|
||||
|
||||
muteAction.backgroundColor = [self getBackgroundColor:nil];
|
||||
[actions insertObject:muteAction atIndex:0];
|
||||
|
||||
// favorites management
|
||||
NSDictionary* tagsDict = [[NSDictionary alloc] init];
|
||||
|
||||
Reference in New Issue
Block a user