-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a8bcac
commit 170cb42
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Q_INSERT = """ | ||
""" | ||
|
||
Q_SELECT = """ | ||
""" | ||
|
||
|
||
""" | ||
<iq type='set' id='${queryId}'> | ||
<query xmlns='urn:xmpp:mam:2' queryid='${queryId}'> | ||
<x xmlns='jabber:x:data' type='submit'> | ||
<field var='FORM_TYPE'> | ||
<value>urn:xmpp:mam:2</value> | ||
</field> | ||
<field var='with'> | ||
<value>${personUuidToJid(withPersonUuid)}</value> | ||
</field> | ||
</x> | ||
<set xmlns='http://jabber.org/protocol/rsm'> | ||
<max>50</max> | ||
<before>${beforeId}</before> | ||
</set> | ||
</query> | ||
</iq> | ||
""" | ||
|
||
""" | ||
<message | ||
type='chat' | ||
from='[email protected]' | ||
to='[email protected]' | ||
id='id3' | ||
check_uniqueness='false' | ||
xmlns='jabber:client'> | ||
<body>message will be sent with no notification</body> | ||
<request xmlns='urn:xmpp:receipts'/> | ||
</message> | ||
""" |