X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fxmpp%2Ftoken.def;fp=citadel%2Fmodules%2Fxmpp%2Ftoken.def;h=d4470e02d38c89012d7027c4756d86013b927c69;hp=a0013ef76f4085a566f0628490d72fe1e86c6602;hb=d13759233eefc3f1d7141b1e10b685bd96c80da5;hpb=f1f85a4859e53e445bf2d12f7fc9dad6efe0bb68 diff --git a/citadel/modules/xmpp/token.def b/citadel/modules/xmpp/token.def index a0013ef76..d4470e02d 100644 --- a/citadel/modules/xmpp/token.def +++ b/citadel/modules/xmpp/token.def @@ -6,7 +6,7 @@ TOKEN(iq, STRPROP(iq, id); STRPROP(iq, from); STRPROP(iq, to); - }) + }); #define NAMESPACE_piq "bub" @@ -17,7 +17,7 @@ TOKEN(piq, STRPROP(piq, id); STRPROP(piq, from); STRPROP(piq, to); - }) + }); #define NAMESPACE_message "jabber:client" TOKEN(message, @@ -26,8 +26,44 @@ TOKEN(message, STRPROP(message, type); STRPROP(message, id); PAYLOAD(message, body); - }) + }); +#define NAMESPACE_message_chatstate "http://jabber.org/protocol/chatstates" + +SUBTOKEN(message, + chatstate, + active, + { + CALLBACK(active); + }); + +SUBTOKEN(message, + chatstate, + composing, + { + CALLBACK(composing); + }); + +SUBTOKEN(message, + chatstate, + paused, + { + CALLBACK(paused); + }); + +SUBTOKEN(message, + chatstate, + inactive, + { + CALLBACK(inactive); + }); + +SUBTOKEN(message, + chatstate, + gone, + { + CALLBACK(gone); + }); // gci