Skip to content
Snippets Groups Projects
Commit 11ddb8a6 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[Dicson] differenciate what we get from geoclue and when we get from jabber...

[Dicson] differenciate what we get from geoclue and when we get from jabber server. It's different. Fixes #5724
parent d8b17e01
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,7 @@ class LocationListener: ...@@ -79,6 +79,7 @@ class LocationListener:
accuracy) accuracy)
def start(self): def start(self):
self.location_info = {}
self.get_data() self.get_data()
bus = dbus.SessionBus() bus = dbus.SessionBus()
# Geoclue # Geoclue
...@@ -124,10 +125,10 @@ class LocationListener: ...@@ -124,10 +125,10 @@ class LocationListener:
continue continue
if not gajim.config.get_per('accounts', acct, 'publish_location'): if not gajim.config.get_per('accounts', acct, 'publish_location'):
continue continue
if gajim.connections[acct].location_info == self._data: if self.location_info == self._data:
continue continue
gajim.connections[acct].send_location(self._data) gajim.connections[acct].send_location(self._data)
gajim.connections[acct].location_info = self._data self.location_info = self._data.copy()
def _timestamp_to_utc(self, timestamp): def _timestamp_to_utc(self, timestamp):
time = datetime.utcfromtimestamp(timestamp) time = datetime.utcfromtimestamp(timestamp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment