Philipp Hörist pushed to branch master at gajim / gajim
Commits:
b8beb55d by Philipp Hörist at 2024-05-12T10:59:08+02:00
cfix: Don’t fail on missing stanza id
Fixes #11827
- - - - -
2 changed files:
- gajim/gtk/chat_list.py
- gajim/gtk/chat_list_row.py
Changes:
=====================================
gajim/gtk/chat_list.py
=====================================
@@ -601,7 +601,6 @@ def _on_message_received(self, event:
events.MessageReceived) -> None:
if message.text is None:
return
- assert message.stanza_id is not None
assert message.id is not None
nick = self._get_nick_for_received_message(event.account, message)
=====================================
gajim/gtk/chat_list_row.py
=====================================
@@ -310,7 +310,7 @@ def set_nick(self, nickname: str) -> None:
def get_real_unread_count(self) -> int:
return self._unread_count
- def set_stanza_id(self, stanza_id: str) -> None:
+ def set_stanza_id(self, stanza_id: str | None) -> None:
self.stanza_id = stanza_id
def set_timestamp(self, timestamp: datetime) -> None:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/b8beb55dbc29b449238182e446c3621946455232
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/b8beb55dbc29b449238182e446c3621946455232
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]