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

[Dicson] don't flood with geoloc info if only timestamp changes. Fixes #5728

parent 3fd9a0a2
No related branches found
No related tags found
No related merge requests found
...@@ -127,6 +127,13 @@ class LocationListener: ...@@ -127,6 +127,13 @@ class LocationListener:
continue continue
if self.location_info == self._data: if self.location_info == self._data:
continue continue
if 'timestamp' in self.location_info and 'timestamp' in self._data:
last_data = self.location_info.copy()
del last_data['timestamp']
new_data = self._data.copy()
del new_data['timestamp']
if last_data == new_data:
continue
gajim.connections[acct].send_location(self._data) gajim.connections[acct].send_location(self._data)
self.location_info = self._data.copy() self.location_info = self._data.copy()
......
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