mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-30 16:22:39 +00:00
Remove the "cancel" notification warning
This commit is contained in:
parent
06e9496f11
commit
a7a8d29f71
1 changed files with 0 additions and 14 deletions
|
@ -350,21 +350,7 @@ static MatrixSDKHandler *sharedHandler = nil;
|
||||||
style:MXCAlertActionStyleDefault
|
style:MXCAlertActionStyleDefault
|
||||||
handler:^(MXCAlert *alert) {
|
handler:^(MXCAlert *alert) {
|
||||||
weakSelf.mxNotification = nil;
|
weakSelf.mxNotification = nil;
|
||||||
|
|
||||||
[weakSelf.unnotifiedRooms addObject:event.roomId];
|
[weakSelf.unnotifiedRooms addObject:event.roomId];
|
||||||
|
|
||||||
weakSelf.mxNotification = [[MXCAlert alloc] initWithTitle:nil
|
|
||||||
message:@"Any message from this room will trigger no alert until the application is backgrounded or restarted."
|
|
||||||
style:MXCAlertStyleAlert];
|
|
||||||
|
|
||||||
[weakSelf.mxNotification addActionWithTitle:@"OK"
|
|
||||||
style:MXCAlertActionStyleDefault
|
|
||||||
handler:^(MXCAlert *alert) {
|
|
||||||
weakSelf.mxNotification = nil;
|
|
||||||
}];
|
|
||||||
|
|
||||||
[weakSelf.mxNotification showInViewController:[[AppDelegate theDelegate].masterTabBarController selectedViewController]];
|
|
||||||
|
|
||||||
}];
|
}];
|
||||||
[self.mxNotification addActionWithTitle:@"View"
|
[self.mxNotification addActionWithTitle:@"View"
|
||||||
style:MXCAlertActionStyleDefault
|
style:MXCAlertActionStyleDefault
|
||||||
|
|
Loading…
Reference in a new issue