Added check whether caps cached
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
|
||||
#include <strophe.h>
|
||||
|
||||
#include "capabilities.h"
|
||||
#include "chat_session.h"
|
||||
#include "common.h"
|
||||
#include "contact_list.h"
|
||||
@@ -1069,6 +1070,12 @@ _presence_handler(xmpp_conn_t * const conn,
|
||||
}
|
||||
}
|
||||
|
||||
if (caps_str != NULL) {
|
||||
if (!caps_contains(caps_str)) {
|
||||
// send iq request for caps info
|
||||
}
|
||||
}
|
||||
|
||||
xmpp_stanza_t *status = xmpp_stanza_get_child_by_name(stanza, STANZA_NAME_STATUS);
|
||||
if (status != NULL)
|
||||
status_str = xmpp_stanza_get_text(status);
|
||||
|
||||
Reference in New Issue
Block a user