mirror of https://github.com/TakeV-Lambda/dino.git
16 lines
516 B
Vala
16 lines
516 B
Vala
namespace Xmpp.Xep.MessageProcessingHints {
|
|
|
|
private const string NS_URI = "urn:xmpp:hints";
|
|
|
|
public const string HINT_NO_PERMANENT_STORE = "no-permanent-store";
|
|
public const string HINT_NO_STORE = "no-store";
|
|
public const string HINT_NO_COPY = "no-copy";
|
|
public const string HINT_STORE = "store";
|
|
|
|
public static void set_message_hint(MessageStanza message, string message_hint) {
|
|
StanzaNode hint_node = (new StanzaNode.build(message_hint, NS_URI)).add_self_xmlns();
|
|
message.stanza.put_node(hint_node);
|
|
}
|
|
|
|
}
|