Subject: Issues receiving messages unless I send one first
Hello! I am having issues with trying to receive messages from another client on the client that I am making with your library. I have two different accounts. One is logged into Gajim and another in the client I am writing. If I open my chat page in the client that I am making and send a message from Gajim to it, the On_mesage event does not trip. However, when I send a message from the client that I am making to Gajim and then send a message from Gajim to my client the event trips. Do you know what might be going on here? Here is the xml log.
Thank you ahead of time!
Thank you ahead of time!
- <!-- Outgoing 11/16/2018 4:19:42 PM -->
- <message xmlns="jabber:client" type="chat" id="6cc1f5f3-6de5-4127-a245-8322fc6a727b" to="bauer1@localhost/3374718702518043531690" from="bauer2@localhost/gajim.OBI0ULG0">
- <active xmlns="http://jabber.org/protocol/chatstates" />
- <no-store xmlns="urn:xmpp:hints" />
- <thread>GQgSWnPkEdyfClJmyfNtbKEjhhCjgOxR</thread>
- </message>
- <!-- Outgoing 11/16/2018 4:19:42 PM -->
- <r xmlns="urn:xmpp:sm:3" />
- <!-- Incoming 11/16/2018 4:19:42 PM -->
- <a h='197' xmlns='urn:xmpp:sm:3'/>
- <!-- Outgoing 11/16/2018 4:19:44 PM -->
- <message xmlns="jabber:client" type="chat" id="d7fd330a-4bf2-494c-948f-1f5695c5d15e" to="bauer1@localhost/3374718702518043531690" from="bauer2@localhost/gajim.OBI0ULG0">
- <composing xmlns="http://jabber.org/protocol/chatstates" />
- <no-store xmlns="urn:xmpp:hints" />
- <thread>GQgSWnPkEdyfClJmyfNtbKEjhhCjgOxR</thread>
- </message>
- <!-- Outgoing 11/16/2018 4:19:44 PM -->
- <r xmlns="urn:xmpp:sm:3" />
- <!-- Incoming 11/16/2018 4:19:44 PM -->
- <a h='198' xmlns='urn:xmpp:sm:3'/>
- <!-- Outgoing 11/16/2018 4:20:07 PM -->
- <message xmlns="jabber:client" type="chat" id="3376d790-9a83-44e6-ae7b-ac8d3b1ae817" to="bauer1@localhost/3374718702518043531690" from="bauer2@localhost/gajim.OBI0ULG0">
- <body>This is from Gajim to my client. It will not be spotted by by event listener.</body>
- <origin-id xmlns="urn:xmpp:sid:0" id="3376d790-9a83-44e6-ae7b-ac8d3b1ae817" />
- <active xmlns="http://jabber.org/protocol/chatstates" />
- <request xmlns="urn:xmpp:receipts" />
- <thread>GQgSWnPkEdyfClJmyfNtbKEjhhCjgOxR</thread>
- </message>
- <!-- Outgoing 11/16/2018 4:20:07 PM -->
- <r xmlns="urn:xmpp:sm:3" />
- <!-- Incoming 11/16/2018 4:20:07 PM -->
- <a h='199' xmlns='urn:xmpp:sm:3'/>
- <!-- Incoming 11/16/2018 4:20:07 PM -->
- <message xml:lang='en' to='bauer2@localhost/gajim.OBI0ULG0' from='bauer1@localhost/3374718702518043531690' type='chat' id='a76df96b-77f4-4fc7-8e39-7b2e1ab163fc'>
- <received xmlns='urn:xmpp:receipts' id='3376d790-9a83-44e6-ae7b-ac8d3b1ae817'/>
- <thread>GQgSWnPkEdyfClJmyfNtbKEjhhCjgOxR</thread>
- </message>
- <r xmlns='urn:xmpp:sm:3'/>
- <!-- Outgoing 11/16/2018 4:20:07 PM -->
- <a xmlns="urn:xmpp:sm:3" h="254" />
- <!-- Incoming 11/16/2018 4:20:26 PM -->
- <message xml:lang='en' to='bauer2@localhost/gajim.OBI0ULG0' from='bauer1@localhost/MatriX-for-Android' type='chat'>
- <archived by='bauer2@localhost' id='1542403226102252' xmlns='urn:xmpp:mam:tmp'/>
- <stanza-id by='bauer2@localhost' id='1542403226102252' xmlns='urn:xmpp:sid:0'/>
- <body>This is my client to gajim.</body>
- </message>
- <r xmlns='urn:xmpp:sm:3'/>
- <!-- Outgoing 11/16/2018 4:20:26 PM -->
- <a xmlns="urn:xmpp:sm:3" h="255" />
- <!-- Outgoing 11/16/2018 4:20:32 PM -->
- <message xmlns="jabber:client" type="chat" id="19f5e9a0-4db2-4743-a967-d1b3ed853cdb" to="bauer1@localhost/MatriX-for-Android" from="bauer2@localhost/gajim.OBI0ULG0">
- <body>This will be recongnized.</body>
- <origin-id xmlns="urn:xmpp:sid:0" id="19f5e9a0-4db2-4743-a967-d1b3ed853cdb" />
- <request xmlns="urn:xmpp:receipts" />
- <thread>jcvYiqdlzqPMKaebMrfjeEYuAyCECMIY</thread>
- </message>
- <!-- Outgoing 11/16/2018 4:20:32 PM -->
- <r xmlns="urn:xmpp:sm:3" />
- <!-- Incoming 11/16/2018 4:20:32 PM -->
- <a h='200' xmlns='urn:xmpp:sm:3'/>