mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-28 12:16:58 +02:00
Add APNS handling in settings screen (hidden by default)
This commit is contained in:
@@ -146,8 +146,8 @@ static MatrixHandler *sharedHandler = nil;
|
||||
}];
|
||||
|
||||
// Check whether the app user wants notifications on new events
|
||||
if ([[AppSettings sharedSettings] enableNotifications]) {
|
||||
[self enableEventsNotifications:YES];
|
||||
if ([[AppSettings sharedSettings] enableInAppNotifications]) {
|
||||
[self enableInAppNotifications:YES];
|
||||
}
|
||||
} failure:^(NSError *error) {
|
||||
NSLog(@"Initial Sync failed: %@", error);
|
||||
@@ -276,7 +276,7 @@ static MatrixHandler *sharedHandler = nil;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)enableEventsNotifications:(BOOL)isEnabled {
|
||||
- (void)enableInAppNotifications:(BOOL)isEnabled {
|
||||
if (isEnabled) {
|
||||
// Register events listener
|
||||
eventsListener = [self.mxSession listenToEventsOfTypes:self.eventsFilterForMessages onEvent:^(MXEvent *event, MXEventDirection direction, id customObject) {
|
||||
|
||||
Reference in New Issue
Block a user