mirror of
https://github.com/owntracks/recorder.git
synced 2026-04-19 01:16:38 +00:00
Merge pull request #460 from nickswalker/nick/waypoint-transition-fix
Don't check fences when user submits a waypoint
This commit is contained in:
@@ -1395,8 +1395,10 @@ void handle_message(void *userdata, char *topic, char *payload, size_t payloadle
|
||||
}
|
||||
}
|
||||
|
||||
check_fences(ud, UB(username), UB(device), lat, lon, json, topic);
|
||||
check_fences(ud, "_", "_", lat, lon, json, topic);
|
||||
if (_type == T_LOCATION || _type == T_TRANSITION) {
|
||||
check_fences(ud, UB(username), UB(device), lat, lon, json, topic);
|
||||
check_fences(ud, "_", "_", lat, lon, json, topic);
|
||||
}
|
||||
|
||||
cleanup:
|
||||
if (geo) json_delete(geo);
|
||||
|
||||
Reference in New Issue
Block a user