Show "request pending" in /sub show, when request has been sent
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user