Daniel
has joined
00:58:22
bhaveshsgupta
has left
00:58:27
bhaveshsgupta
has joined
01:00:09
lksjdflksjdf
has left
01:01:51
lksjdflksjdf
has joined
01:01:52
bhaveshsgupta
has left
01:21:58
bhaveshsgupta
has joined
01:23:30
lksjdflksjdf
has left
02:06:37
bhaveshsgupta
has left
02:32:55
gav
has left
02:53:58
bhaveshsgupta
has joined
04:23:10
gav
has joined
04:40:20
gav
has left
04:42:37
gav
has joined
04:42:52
bhaveshsgupta
has left
04:46:30
bhaveshsgupta
has joined
04:47:10
bhaveshsgupta
has left
04:59:04
bhaveshsgupta
has joined
04:59:25
Daniel
has left
05:00:06
wurstsalat
has joined
05:03:38
bhaveshsgupta
has left
05:08:09
bhaveshsgupta
has joined
05:11:13
rion
has left
05:25:41
rion
has joined
05:29:50
Daniel
has joined
05:32:44
rion
has left
05:37:37
rion
has joined
05:37:38
aj
has joined
06:11:53
marc0s
has left
06:21:18
marc0s
has joined
06:21:20
aj
has left
06:55:08
skyfar
has joined
08:03:49
bhaveshsgupta
has left
08:29:29
bhaveshsgupta
has joined
08:35:37
Kev
has joined
08:35:43
bhaveshsgupta
has left
08:43:40
Kev
has left
08:45:55
skyfar
has left
08:48:41
bhaveshsgupta
has joined
08:59:35
Kev
has joined
09:03:43
bhaveshsgupta
has left
09:07:40
bhaveshsgupta
has joined
09:11:37
Kev
has left
09:13:35
bhaveshsgupta
has left
09:30:57
marc0s
has left
09:35:11
marc0s
has joined
09:35:32
bhaveshsgupta
has joined
09:35:40
bhaveshsgupta
has left
09:46:39
bhaveshsgupta
has joined
09:47:42
lksjdflksjdf
has joined
09:49:53
bhaveshsgupta
has left
09:55:46
bhaveshsgupta
has joined
09:59:44
bhaveshsgupta
has left
10:07:47
bhaveshsgupta
has joined
10:21:45
bhaveshsgupta
has left
10:28:27
bhaveshsgupta
has joined
11:22:53
moparisthebest
has left
11:24:34
moparisthebest
has joined
11:24:56
SkyfaR
has left
11:29:11
SkyfaR
has joined
11:29:12
bhaveshsgupta
has left
11:42:28
bhaveshsgupta
has joined
11:46:20
bhaveshsgupta
has left
11:57:21
bhaveshsgupta
has joined
11:58:38
bhaveshsgupta
has left
12:09:15
bhaveshsgupta
has joined
12:10:21
paria
has joined
12:41:16
paria
12:41:57
hi everyone, how can i have my messages archive for specific user?
paria
12:43:20
😥
bhaveshsgupta
has left
12:43:29
moparisthebest
12:45:04
paria, can you be more specific
paria
12:45:49
i'm using xmpp server to create a chat app one to one
bhaveshsgupta
has joined
12:46:26
paria
12:46:39
already i have all messages archive, but i want to filter it by specific jabber id
paria
12:47:25
the question is how to make query to get archive just for user X or Y or ...
moparisthebest
12:47:48
a specific JID already only has access to their own archive though, right?
paria
12:48:08
how?
paria
12:49:57
do you have any example?
paria
12:50:06
moparisthebest
Daniel
12:50:14
paria: have you read xep313?
paria
12:50:21
yesss
paria
12:50:42
but not working
paria
12:51:13
<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> ✎
paria
12:51:35
<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> ✏
Daniel
12:51:46
Not working how?
paria
12:52:04
this is my created xml
paria
12:52:20
based on xep313 ✎
paria
12:52:25
based on xep313 for filtering ✏
Daniel
12:52:33
Compare that to example 6
paria
12:52:37
ok
paria
13:03:50
Daniel is example 6 the server response? right?
Daniel
13:05:19
no
paria
13:05:53
it is my xml to send??
paria
13:05:56
r u sure?
paria
13:06:21
i'm completly confused ✎
Daniel
13:06:30
you might want to re-read section 4 of the xep
paria
13:06:33
i'm completely confused ✏
paria
13:06:47
ok i'll
bhaveshsgupta
has left
13:08:51
bhaveshsgupta
has joined
13:16:01
bhaveshsgupta
has left
13:43:24
bhaveshsgupta
has joined
13:48:35
bhaveshsgupta
has left
13:57:25
bhaveshsgupta
has joined
14:48:28
lovetox
has joined
14:53:22
bhaveshsgupta
has left
14:58:52
vanitasvitae
has left
15:02:55
vanitasvitae
has joined
15:03:39
vanitasvitae
has left
15:05:35
bhaveshsgupta
has joined
15:12:23
paria
15:17:32
Daniel r u there?
Daniel
15:17:51
paria, yes
paria
15:18:40
i'm getting reponse from server like this
paria
15:20:00
<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> ✎
paria
15:20:17
1 momment ✏
aj
has joined
15:20:35
Daniel
15:24:10
paria, in response to what request?
Kev
has joined
15:24:49
paria
15:24:51
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());
} ✎
paria
15:24:54
this
paria
15:25:30
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());
} ✏
Daniel
15:25:53
paria, can you show me the xml?
paria
15:26:00
yes
paria
15:26:02
w8
Zash
15:26:19
What library are you using? Is there no MAM support?
paria
15:27:19
<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>
lovetox
15:27:45
paria, this query is wrong
lovetox
15:27:53
look at example 6 of the XEP
paria
15:27:57
Zash strophejs
Zash
15:28:06
Pretty sure someone wrote a MAM plugin for that
paria
15:29:25
https://github.com/strophe/strophejs-plugin-mam
paria
15:29:58
this is the plugin but it has some errors
paria
15:31:01
Daniel i should create example 6 xml?
lovetox
15:31:21
yes paria as the example description tells you
paria
15:31:25
now the server response is like example 6
lovetox
15:31:27
"Querying for all messages to/from a particular JID"
bhaveshsgupta
has left
15:32:35
lovetox
15:32:36
where do you got the idea to do a <with>paria@ejabberd</with>
lovetox
15:32:43
this is nowhere to be found in the xep
paria
15:33:38
in one document which i read before,
paria
15:33:45
but it's wrong
vanitasvitae
has joined
15:34:15
Daniel
15:34:22
just follow the examples in the XEP
bhaveshsgupta
has joined
15:36:03
bhaveshsgupta
has left
15:46:56
bhaveshsgupta
has joined
15:48:00
aj
has left
15:54:59
lovetox
15:59:55
do servers do that autoreply on preapproval of roster additions the RFC6121 mentions?
lovetox
16:00:17
https://tools.ietf.org/html/rfc6121#section-3.1.3
vanitasvitae
has left
16:03:03
bhaveshsgupta
has left
16:08:07
Ge0rG
16:11:47
I wouldn't be surprised if servers didn't implement that at all
bhaveshsgupta
has joined
16:12:25
marc0s
has left
16:33:42
marc0s
has joined
16:33:46
rion
has left
16:39:10
rion
has joined
16:49:56
vanitasvitae
has joined
17:44:41
bhaveshsgupta
has left
17:58:29
bhaveshsgupta
has joined
18:00:18
bhaveshsgupta
has left
18:45:49
bhaveshsgupta
has joined
18:48:33
bhaveshsgupta
has left
18:59:27
bhaveshsgupta
has joined
19:00:36
marc0s
has left
19:10:55
marc0s
has joined
19:10:58
bhaveshsgupta
has left
19:39:22
bhaveshsgupta
has joined
19:41:38
lovetox
has left
20:30:22
bhaveshsgupta
has left
20:50:09
bhaveshsgupta
has joined
20:55:03
kevin
has joined
21:21:44
kevin
21:22:37
i hope everyone is having a wonderful day
bhaveshsgupta
has left
21:40:09
bhaveshsgupta
has joined
21:43:10
allie
21:47:31
kevin:
bhaveshsgupta
has left
21:50:50
kevin
21:51:55
whats up allie
allie
21:52:57
oops that was an accident lol
allie
21:53:03
nada, you?
rion
has left
21:59:10
rion
has joined
21:59:12
bhaveshsgupta
has joined
22:06:16
bhaveshsgupta
has left
22:49:15
bhaveshsgupta
has joined
22:51:41
sonny
has left
23:13:59
sonny
has joined
23:14:02
sonny
has left
23:15:51
sonny
has joined
23:15:57
bhaveshsgupta
has left
23:28:21
bhaveshsgupta
has joined
23:31:46
wurstsalat
has left
23:56:32