Philipp Hörist pushed to branch fix-read-state-sync at gajim / gajim
Commits:
22e303ac by Philipp Hörist at 2022-11-04T22:42:23+01:00
cfix: Fix type annotations
- - - - -
1 changed file:
- gajim/common/modules/chat_markers.py
Changes:
=====================================
gajim/common/modules/chat_markers.py
=====================================
@@ -17,6 +17,7 @@
from __future__ import annotations
from typing import Any
+from typing import Optional
from nbxmpp.namespaces import Namespace
from nbxmpp.structs import StanzaHandler
@@ -133,7 +134,7 @@ def _send_marker(self,
def send_displayed_marker(self,
contact: types.ChatContactT,
message_id: str,
- stanza_id: str) -> None:
+ stanza_id: Optional[str]) -> None:
if not self._is_sending_marker_allowed(contact):
return
@@ -144,8 +145,9 @@ def send_displayed_marker(self,
@staticmethod
def _determine_marker_id(contact: types.ChatContactT,
message_id: str,
- stanza_id: str
+ stanza_id: Optional[str]
) -> str:
+
if stanza_id is None:
return message_id
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/22e303acc2cac97b044e76b358385c8c1e2d2528
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/22e303acc2cac97b044e76b358385c8c1e2d2528
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits