Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
heythere #1
Member for a month · 1 post
Group memberships: Members
Show profile · Link to this post
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!

  1. <!-- Outgoing 11/16/2018 4:19:42 PM -->
  2. <message xmlns="jabber:client" type="chat" id="6cc1f5f3-6de5-4127-a245-8322fc6a727b" to="bauer1@localhost/3374718702518043531690" from="bauer2@localhost/gajim.OBI0ULG0">
  3. <active xmlns="http://jabber.org/protocol/chatstates" />
  4. <no-store xmlns="urn:xmpp:hints" />
  5. <thread>GQgSWnPkEdyfClJmyfNtbKEjhhCjgOxR</thread>
  6. </message>
  7.  
  8. <!-- Outgoing 11/16/2018 4:19:42 PM -->
  9. <r xmlns="urn:xmpp:sm:3" />
  10.  
  11. <!-- Incoming 11/16/2018 4:19:42 PM -->
  12. <a h='197' xmlns='urn:xmpp:sm:3'/>
  13.  
  14. <!-- Outgoing 11/16/2018 4:19:44 PM -->
  15. <message xmlns="jabber:client" type="chat" id="d7fd330a-4bf2-494c-948f-1f5695c5d15e" to="bauer1@localhost/3374718702518043531690" from="bauer2@localhost/gajim.OBI0ULG0">
  16. <composing xmlns="http://jabber.org/protocol/chatstates" />
  17. <no-store xmlns="urn:xmpp:hints" />
  18. <thread>GQgSWnPkEdyfClJmyfNtbKEjhhCjgOxR</thread>
  19. </message>
  20.  
  21. <!-- Outgoing 11/16/2018 4:19:44 PM -->
  22. <r xmlns="urn:xmpp:sm:3" />
  23.  
  24. <!-- Incoming 11/16/2018 4:19:44 PM -->
  25. <a h='198' xmlns='urn:xmpp:sm:3'/>
  26.  
  27. <!-- Outgoing 11/16/2018 4:20:07 PM -->
  28. <message xmlns="jabber:client" type="chat" id="3376d790-9a83-44e6-ae7b-ac8d3b1ae817" to="bauer1@localhost/3374718702518043531690" from="bauer2@localhost/gajim.OBI0ULG0">
  29. <body>This is from Gajim to my client. It will not be spotted by by event listener.</body>
  30. <origin-id xmlns="urn:xmpp:sid:0" id="3376d790-9a83-44e6-ae7b-ac8d3b1ae817" />
  31. <active xmlns="http://jabber.org/protocol/chatstates" />
  32. <request xmlns="urn:xmpp:receipts" />
  33. <thread>GQgSWnPkEdyfClJmyfNtbKEjhhCjgOxR</thread>
  34. </message>
  35.  
  36. <!-- Outgoing 11/16/2018 4:20:07 PM -->
  37. <r xmlns="urn:xmpp:sm:3" />
  38.  
  39. <!-- Incoming 11/16/2018 4:20:07 PM -->
  40. <a h='199' xmlns='urn:xmpp:sm:3'/>
  41.  
  42. <!-- Incoming 11/16/2018 4:20:07 PM -->
  43. <message xml:lang='en' to='bauer2@localhost/gajim.OBI0ULG0' from='bauer1@localhost/3374718702518043531690' type='chat' id='a76df96b-77f4-4fc7-8e39-7b2e1ab163fc'>
  44. <received xmlns='urn:xmpp:receipts' id='3376d790-9a83-44e6-ae7b-ac8d3b1ae817'/>
  45. <thread>GQgSWnPkEdyfClJmyfNtbKEjhhCjgOxR</thread>
  46. </message>
  47. <r xmlns='urn:xmpp:sm:3'/>
  48.  
  49. <!-- Outgoing 11/16/2018 4:20:07 PM -->
  50. <a xmlns="urn:xmpp:sm:3" h="254" />
  51.  
  52. <!-- Incoming 11/16/2018 4:20:26 PM -->
  53. <message xml:lang='en' to='bauer2@localhost/gajim.OBI0ULG0' from='bauer1@localhost/MatriX-for-Android' type='chat'>
  54. <archived by='bauer2@localhost' id='1542403226102252' xmlns='urn:xmpp:mam:tmp'/>
  55. <stanza-id by='bauer2@localhost' id='1542403226102252' xmlns='urn:xmpp:sid:0'/>
  56. <body>This is my client to gajim.</body>
  57. </message>
  58. <r xmlns='urn:xmpp:sm:3'/>
  59.  
  60. <!-- Outgoing 11/16/2018 4:20:26 PM -->
  61. <a xmlns="urn:xmpp:sm:3" h="255" />
  62.  
  63. <!-- Outgoing 11/16/2018 4:20:32 PM -->
  64. <message xmlns="jabber:client" type="chat" id="19f5e9a0-4db2-4743-a967-d1b3ed853cdb" to="bauer1@localhost/MatriX-for-Android" from="bauer2@localhost/gajim.OBI0ULG0">
  65. <body>This will be recongnized.</body>
  66. <origin-id xmlns="urn:xmpp:sid:0" id="19f5e9a0-4db2-4743-a967-d1b3ed853cdb" />
  67. <request xmlns="urn:xmpp:receipts" />
  68. <thread>jcvYiqdlzqPMKaebMrfjeEYuAyCECMIY</thread>
  69. </message>
  70.  
  71. <!-- Outgoing 11/16/2018 4:20:32 PM -->
  72. <r xmlns="urn:xmpp:sm:3" />
  73.  
  74. <!-- Incoming 11/16/2018 4:20:32 PM -->
  75. <a h='200' xmlns='urn:xmpp:sm:3'/>
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
is it possible that something goes wrong when you setup OnMessage events?

  • Why do you need to open a message windows in order to receive messages?
  • Have you tried the same scenario with the MatriX Windows Forms MiniClient?

It may help when you post the complete log of your session.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS