Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: 6dc81a62 by wurstsalat at 2021-12-11T22:51:46+01:00 ReadMarkerRow: Improve UX when receiving message
- - - - -
1 changed file:
- gajim/gtk/conversation/rows/read_marker.py
Changes:
===================================== gajim/gtk/conversation/rows/read_marker.py ===================================== @@ -13,6 +13,7 @@ # along with Gajim. If not, see http://www.gnu.org/licenses/.
from datetime import datetime +from datetime import timedelta
from gi.repository import Gtk
@@ -46,7 +47,7 @@ def _on_nickname_update(self, contact, _signal_name): self.label.set_text(text)
def set_timestamp(self, timestamp: datetime) -> None: - if timestamp < self._last_incoming_timestamp: + if timestamp <= self._last_incoming_timestamp: return
self.timestamp = timestamp @@ -57,4 +58,5 @@ def set_timestamp(self, timestamp: datetime) -> None:
def set_last_incoming_timestamp(self, timestamp: datetime) -> None: if timestamp > self._last_incoming_timestamp: - self._last_incoming_timestamp = timestamp + self._last_incoming_timestamp = timestamp + timedelta( + microseconds=1)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/6dc81a627f45a24001d08827a9eac04fa...