mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 10:46:21 +00:00
Only include lastactivity feature in disco responses when enabled
This commit is contained in:
@@ -105,8 +105,9 @@ caps_init(void)
|
||||
if (prefs_get_boolean(PREF_RECEIPTS_SEND)) {
|
||||
g_hash_table_add(prof_features, strdup(STANZA_NS_RECEIPTS));
|
||||
}
|
||||
g_hash_table_add(prof_features, strdup(STANZA_NS_LASTACTIVITY));
|
||||
|
||||
if (prefs_get_boolean(PREF_LASTACTIVITY)) {
|
||||
g_hash_table_add(prof_features, strdup(STANZA_NS_LASTACTIVITY));
|
||||
}
|
||||
my_sha1 = NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
|
||||
#define XMPP_FEATURE_BLOCKING "urn:xmpp:blocking"
|
||||
#define XMPP_FEATURE_RECEIPTS "urn:xmpp:receipts"
|
||||
#define XMPP_FEATURE_LASTACTIVITY "jabber:iq:last"
|
||||
|
||||
typedef enum {
|
||||
JABBER_CONNECTING,
|
||||
|
||||
Reference in New Issue
Block a user