Implemented "/sub sent" to show outstanding sent subscription requests

This commit is contained in:
James Booth
2012-11-28 01:36:04 +00:00
parent b7a7be37e9
commit 0756a9cec6
4 changed files with 35 additions and 3 deletions

View File

@@ -118,6 +118,24 @@ contact_list_update_subscription(const char * const jid,
}
}
gboolean
contact_list_has_pending_subscriptions(void)
{
GHashTableIter iter;
gpointer key;
gpointer value;
g_hash_table_iter_init(&iter, contacts);
while (g_hash_table_iter_next(&iter, &key, &value)) {
PContact contact = (PContact) value;
if (p_contact_pending_out(contact)) {
return TRUE;
}
}
return FALSE;
}
GSList *
get_contact_list(void)
{