aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoshial <soshial@gmail.com>2021-04-26 18:23:21 +0400
committersoshial <soshial@gmail.com>2021-04-26 18:23:21 +0400
commit114264a79272764314ab991829fcc32a2e5a3b66 (patch)
tree676393c9f7b452ba7c91e66f504882d88c77629d
parent516dce5aedf9b45557e6d1eb62ac797987290c1f (diff)
downloadtrackermap-server-114264a79272764314ab991829fcc32a2e5a3b66.tar.gz
trackermap-server-114264a79272764314ab991829fcc32a2e5a3b66.tar.bz2
trackermap-server-114264a79272764314ab991829fcc32a2e5a3b66.zip
cleanse NotificatorTelegram before merge-2
-rw-r--r--src/main/java/org/traccar/notificators/NotificatorTelegram.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/notificators/NotificatorTelegram.java b/src/main/java/org/traccar/notificators/NotificatorTelegram.java
index bd23684d4..963bdb091 100644
--- a/src/main/java/org/traccar/notificators/NotificatorTelegram.java
+++ b/src/main/java/org/traccar/notificators/NotificatorTelegram.java
@@ -81,7 +81,7 @@ public class NotificatorTelegram extends Notificator {
});
}
- private LocationMessage createMessage(Position position) {
+ private LocationMessage createLocationMessage(Position position) {
LocationMessage locationMessage = new LocationMessage();
locationMessage.chatId = chatId;
locationMessage.latitude = position.getLatitude();
@@ -94,8 +94,7 @@ public class NotificatorTelegram extends Notificator {
@Override
public void sendSync(long userId, Event event, Position position) {
if (position != null) {
- LocationMessage locationMessage = createMessage(position);
- executeRequest(urlSendLocation, locationMessage);
+ executeRequest(urlSendLocation, createLocationMessage(position));
}
TextMessage message = new TextMessage();
message.chatId = chatId;