Fix #14: Add features in caps_init to avoid redundant presence updates
#15
@@ -119,6 +119,14 @@ caps_init(void)
|
|||||||
g_hash_table_add(prof_features, strdup(STANZA_NS_LAST_MESSAGE_CORRECTION));
|
g_hash_table_add(prof_features, strdup(STANZA_NS_LAST_MESSAGE_CORRECTION));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (prefs_get_boolean(PREF_MOOD)) {
|
||||||
|
g_hash_table_add(prof_features, strdup(STANZA_NS_MOOD_NOTIFY));
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_OMEMO
|
||||||
|
g_hash_table_add(prof_features, strdup(XMPP_FEATURE_OMEMO_DEVICELIST_NOTIFY));
|
||||||
|
#endif
|
||||||
|
|
||||||
my_sha1 = NULL;
|
my_sha1 = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user