jdev - 2019-09-24


  1. Daniel has joined

  2. bhaveshsgupta has left

  3. bhaveshsgupta has joined

  4. lksjdflksjdf has left

  5. lksjdflksjdf has joined

  6. bhaveshsgupta has left

  7. bhaveshsgupta has joined

  8. lksjdflksjdf has left

  9. bhaveshsgupta has left

  10. gav has left

  11. bhaveshsgupta has joined

  12. gav has joined

  13. gav has left

  14. gav has joined

  15. bhaveshsgupta has left

  16. bhaveshsgupta has joined

  17. bhaveshsgupta has left

  18. bhaveshsgupta has joined

  19. Daniel has left

  20. wurstsalat has joined

  21. bhaveshsgupta has left

  22. bhaveshsgupta has joined

  23. rion has left

  24. rion has joined

  25. Daniel has joined

  26. rion has left

  27. rion has joined

  28. aj has joined

  29. marc0s has left

  30. marc0s has joined

  31. aj has left

  32. skyfar has joined

  33. bhaveshsgupta has left

  34. bhaveshsgupta has joined

  35. Kev has joined

  36. bhaveshsgupta has left

  37. Kev has left

  38. skyfar has left

  39. bhaveshsgupta has joined

  40. Kev has joined

  41. bhaveshsgupta has left

  42. bhaveshsgupta has joined

  43. Kev has left

  44. bhaveshsgupta has left

  45. marc0s has left

  46. marc0s has joined

  47. bhaveshsgupta has joined

  48. bhaveshsgupta has left

  49. bhaveshsgupta has joined

  50. lksjdflksjdf has joined

  51. bhaveshsgupta has left

  52. bhaveshsgupta has joined

  53. bhaveshsgupta has left

  54. bhaveshsgupta has joined

  55. bhaveshsgupta has left

  56. bhaveshsgupta has joined

  57. moparisthebest has left

  58. moparisthebest has joined

  59. SkyfaR has left

  60. SkyfaR has joined

  61. bhaveshsgupta has left

  62. bhaveshsgupta has joined

  63. bhaveshsgupta has left

  64. bhaveshsgupta has joined

  65. bhaveshsgupta has left

  66. bhaveshsgupta has joined

  67. paria has joined

  68. paria

    hi everyone, how can i have my messages archive for specific user?

  69. paria

    😥

  70. bhaveshsgupta has left

  71. moparisthebest

    paria, can you be more specific

  72. paria

    i'm using xmpp server to create a chat app one to one

  73. bhaveshsgupta has joined

  74. paria

    already i have all messages archive, but i want to filter it by specific jabber id

  75. paria

    the question is how to make query to get archive just for user X or Y or ...

  76. moparisthebest

    a specific JID already only has access to their own archive though, right?

  77. paria

    how?

  78. paria

    do you have any example?

  79. paria

    moparisthebest

  80. Daniel

    paria: have you read xep313?

  81. paria

    yesss

  82. paria

    but not working

  83. paria

    <body rid="3487398716" sid="104eace1e302ddcce25e726868f0af7d91589a18" xmlns="http://jabber.org/protocol/httpbind"><iq id="a2" type="set" xmlns="jabber:client"><query xmlns="urn:xmpp:mam:2"><with>paria@ejabberd</with></query></iq></body>

  84. paria

    <body rid="3487398716" sid="104eace1e302ddcce25e726868f0af7d91589a18" xmlns="http://jabber.org/protocol/httpbind"> <iq id="a2" type="set" xmlns="jabber:client"><query xmlns="urn:xmpp:mam:2"> <with>paria@ejabberd</with> </query></iq></body>

  85. Daniel

    Not working how?

  86. paria

    this is my created xml

  87. paria

    based on xep313

  88. paria

    based on xep313 for filtering

  89. Daniel

    Compare that to example 6

  90. paria

    ok

  91. paria

    Daniel is example 6 the server response? right?

  92. Daniel

    no

  93. paria

    it is my xml to send??

  94. paria

    r u sure?

  95. paria

    i'm completly confused

  96. Daniel

    you might want to re-read section 4 of the xep

  97. paria

    i'm completely confused

  98. paria

    ok i'll

  99. bhaveshsgupta has left

  100. bhaveshsgupta has joined

  101. bhaveshsgupta has left

  102. bhaveshsgupta has joined

  103. bhaveshsgupta has left

  104. bhaveshsgupta has joined

  105. lovetox has joined

  106. bhaveshsgupta has left

  107. vanitasvitae has left

  108. vanitasvitae has joined

  109. vanitasvitae has left

  110. bhaveshsgupta has joined

  111. paria

    Daniel r u there?

  112. Daniel

    paria, yes

  113. paria

    i'm getting reponse from server like this

  114. paria

    <iq xmlns =" jabber:client " xml:lang =" en " to =" admin@ejabberd/31559446851458370303810 " from =" admin@ejabberd " type =" result " id =" archive2 " > <query xmlns =" urn:xmpp:mam:2 " > <x xmlns =" jabber❌data " type =" form " > <field var =" FORM_TYPE " type =" hidden " > <value > urn:xmpp:mam:2 </value > </field> <field var =" with " type =" jid-single " label =" User JID " / > <field var =" start " type =" text-single " label =" Search from the date " / > <field var =" end " type="text-single" label <iq xmlns =" jabber:client " xml:lang =" en " to =" admin@ejabberd/31559446851458370303810 " from =" admin@ejabberd " type =" result " id =" archive2 " > <query xmlns =" urn:xmpp:mam:2 " > <x xmlns =" jabber❌data " type =" form " > <field var =" FORM_TYPE " type =" hidden " > <value > urn:xmpp:mam:2 </value > </field> <field var =" with " type =" jid-single " label =" User JID " / > <field var =" start " type =" text-single " label =" Search from the date " / > <field var =" end " type =" text-single " label =" Search until the date " / > </x> </query> </iq> =" Search until the date " /> </x> </query> </iq>

  115. paria

    1 momment

  116. aj has joined

  117. Daniel

    paria, in response to what request?

  118. Kev has joined

  119. paria

    getArchive() { let archive = this.state .$iq({ type: "set", id: "archive1" }) .c("query", { xmlns: "urn:xmpp:mam:2" }) .c("with") .t(this.state.connection.jid); console.log("history", archive); this.state.connection.send(archive.tree()); }

  120. paria

    this

  121. paria

    getArchive() { let archive = this.state .$iq({ type: "get", id: "archive1" }) .c("query", { xmlns: "urn:xmpp:mam:2" }) .c("with") .t(this.state.connection.jid); console.log("history", archive); this.state.connection.send(archive.tree()); }

  122. Daniel

    paria, can you show me the xml?

  123. paria

    yes

  124. paria

    w8

  125. Zash

    What library are you using? Is there no MAM support?

  126. paria

    <body rid="1446034458" sid="46bada5449ccb61b52966b424f7ea8ee9ecbc879" xmlns="http://jabber.org/protocol/httpbind"> <iq id="archive1" type="set" xmlns="jabber:client"><query xmlns="urn:xmpp:mam:2"/></iq> <iq id="archive2" type="get" xmlns="jabber:client"><query xmlns="urn:xmpp:mam:2"><with>paria@ejabberd</with></query></iq> </body>

  127. lovetox

    paria, this query is wrong

  128. lovetox

    look at example 6 of the XEP

  129. paria

    Zash strophejs

  130. Zash

    Pretty sure someone wrote a MAM plugin for that

  131. paria

    https://github.com/strophe/strophejs-plugin-mam

  132. paria

    this is the plugin but it has some errors

  133. paria

    Daniel i should create example 6 xml?

  134. lovetox

    yes paria as the example description tells you

  135. paria

    now the server response is like example 6

  136. lovetox

    "Querying for all messages to/from a particular JID"

  137. bhaveshsgupta has left

  138. lovetox

    where do you got the idea to do a <with>paria@ejabberd</with>

  139. lovetox

    this is nowhere to be found in the xep

  140. paria

    in one document which i read before,

  141. paria

    but it's wrong

  142. vanitasvitae has joined

  143. Daniel

    just follow the examples in the XEP

  144. bhaveshsgupta has joined

  145. bhaveshsgupta has left

  146. bhaveshsgupta has joined

  147. aj has left

  148. lovetox

    do servers do that autoreply on preapproval of roster additions the RFC6121 mentions?

  149. lovetox

    https://tools.ietf.org/html/rfc6121#section-3.1.3

  150. vanitasvitae has left

  151. bhaveshsgupta has left

  152. Ge0rG

    I wouldn't be surprised if servers didn't implement that at all

  153. bhaveshsgupta has joined

  154. marc0s has left

  155. marc0s has joined

  156. rion has left

  157. rion has joined

  158. vanitasvitae has joined

  159. bhaveshsgupta has left

  160. bhaveshsgupta has joined

  161. bhaveshsgupta has left

  162. bhaveshsgupta has joined

  163. bhaveshsgupta has left

  164. bhaveshsgupta has joined

  165. marc0s has left

  166. marc0s has joined

  167. bhaveshsgupta has left

  168. bhaveshsgupta has joined

  169. lovetox has left

  170. bhaveshsgupta has left

  171. bhaveshsgupta has joined

  172. kevin has joined

  173. kevin

    i hope everyone is having a wonderful day

  174. bhaveshsgupta has left

  175. bhaveshsgupta has joined

  176. allie

    kevin:

  177. bhaveshsgupta has left

  178. kevin

    whats up allie

  179. allie

    oops that was an accident lol

  180. allie

    nada, you?

  181. rion has left

  182. rion has joined

  183. bhaveshsgupta has joined

  184. bhaveshsgupta has left

  185. bhaveshsgupta has joined

  186. sonny has left

  187. sonny has joined

  188. sonny has left

  189. sonny has joined

  190. bhaveshsgupta has left

  191. bhaveshsgupta has joined

  192. wurstsalat has left