Show "request pending" in /sub show, when request has been sent

This commit is contained in:
James Booth
2012-11-27 22:26:42 +00:00
parent 4b460100ad
commit 2f2fa8de66
8 changed files with 42 additions and 18 deletions

View File

@@ -56,13 +56,14 @@ contact_list_reset_search_attempts(void)
gboolean
contact_list_add(const char * const jid, const char * const name,
const char * const presence, const char * const status,
const char * const subscription)
const char * const subscription, gboolean pending_out)
{
gboolean added = FALSE;
PContact contact = g_hash_table_lookup(contacts, jid);
if (contact == NULL) {
contact = p_contact_new(jid, name, presence, status, subscription);
contact = p_contact_new(jid, name, presence, status, subscription,
pending_out);
g_hash_table_insert(contacts, strdup(jid), contact);
p_autocomplete_add(ac, strdup(jid));
added = TRUE;