Philipp Hörist pushed to branch reactions at gajim / gajim
Commits:
8b2a33b2 by Philipp Hörist at 2024-05-18T15:33:47+02:00
fix: Check with message type
- - - - -
70df058f by Philipp Hörist at 2024-05-18T15:34:11+02:00
cq: Fix type hint
- - - - -
2 changed files:
- gajim/common/modules/reactions.py
- gajim/gtk/conversation/rows/message.py
Changes:
=====================================
gajim/common/modules/reactions.py
=====================================
@@ -93,6 +93,7 @@ def _process_reaction(
occupant = None
if m_type == MessageType.GROUPCHAT:
+ assert properties.jid is not None
contact = self._client.get_module('Contacts').get_contact(
properties.jid, groupchat=True
)
=====================================
gajim/gtk/conversation/rows/message.py
=====================================
@@ -459,7 +459,7 @@ def update_reactions(self) -> None:
def send_reaction(self, emoji: str) -> None:
reaction_id = self.message_id
- if isinstance(self._contact, GroupchatContact):
+ if self._original_message.type == MessageType.GROUPCHAT:
reaction_id = self.stanza_id
if reaction_id is None:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/a9226f58a124a300dc2ff15bd8b4951b9bd21d04...70df058fb8cb4ce76d50d655fa573dc3bf31fde6
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/a9226f58a124a300dc2ff15bd8b4951b9bd21d04...70df058fb8cb4ce76d50d655fa573dc3bf31fde6
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]