Skip to content

Commit

Permalink
[FIX] reportLocation command triggering in Manual mode #800
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrey committed Jul 25, 2024
1 parent c5e14f3 commit 3ead10d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OwnTracks/OwnTracks/OwnTracksAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -1114,8 +1114,8 @@ - (BOOL)handleMessage:(Connection *)connection
[self status];

} else if ([action isEqualToString:@"reportLocation"]) {
if ([LocationManager sharedInstance].monitoring == LocationMonitoringSignificant ||
[LocationManager sharedInstance].monitoring == LocationMonitoringMove ||
if (([LocationManager sharedInstance].monitoring == LocationMonitoringSignificant ||
[LocationManager sharedInstance].monitoring == LocationMonitoringMove) &&
[Settings boolForKey:@"allowremotelocation_preference"
inMOC:CoreData.sharedInstance.queuedMOC]) {
[self performSelectorOnMainThread:@selector(reportLocation)
Expand Down

0 comments on commit 3ead10d

Please sign in to comment.