Philipp Hörist pushed to branch master at gajim / gajim


Commits:
3a050730 by nicoco at 2025-12-17T07:49:28+00:00
fix: Fix reply-to JID for self-messages in direct chats (XEP-0461)

- - - - -


1 changed file:

- gajim/gtk/referenced_message.py


Changes:

=====================================
gajim/gtk/referenced_message.py
=====================================
@@ -13,11 +13,13 @@
 from gi.repository import GLib
 from gi.repository import Gtk
 from gi.repository import Pango
+from nbxmpp import JID
 
 from gajim.common import app
 from gajim.common.const import AvatarSize
 from gajim.common.i18n import _
 from gajim.common.storage.archive import models as mod
+from gajim.common.storage.archive.const import ChatDirection
 from gajim.common.storage.archive.const import MessageType
 from gajim.common.structs import ReplyData
 from gajim.common.types import ChatContactT
@@ -166,6 +168,9 @@ def get_message_reply(self) -> ReplyData | None:
             jid = self._message.remote.jid
             jid = jid.new_with(resource=self._message.resource)
             reply_to_id = self._original_message.stanza_id
+        elif self._message.type == MessageType.CHAT:
+            if self._original_message.direction == ChatDirection.OUTGOING:
+                jid = 
JID.from_string(app.get_jid_from_account(self._contact.account))
 
         if reply_to_id is None:
             return None



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/3a050730a67b5be46f2bd36a3129c5be004f381e

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/3a050730a67b5be46f2bd36a3129c5be004f381e
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]

Reply via email to