mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 23:36:21 +00:00
Show "request pending" in /sub show, when request has been sent
This commit is contained in:
@@ -33,12 +33,13 @@ struct p_contact_t {
|
||||
char *presence;
|
||||
char *status;
|
||||
char *subscription;
|
||||
gboolean pending_out;
|
||||
};
|
||||
|
||||
PContact
|
||||
p_contact_new(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)
|
||||
{
|
||||
PContact contact = malloc(sizeof(struct p_contact_t));
|
||||
contact->jid = strdup(jid);
|
||||
@@ -64,6 +65,8 @@ p_contact_new(const char * const jid, const char * const name,
|
||||
else
|
||||
contact->subscription = strdup("none");;
|
||||
|
||||
contact->pending_out = pending_out;
|
||||
|
||||
return contact;
|
||||
}
|
||||
|
||||
@@ -156,6 +159,12 @@ p_contact_subscription(const PContact contact)
|
||||
return contact->subscription;
|
||||
}
|
||||
|
||||
gboolean
|
||||
p_contact_pending_out(const PContact contact)
|
||||
{
|
||||
return contact->pending_out;
|
||||
}
|
||||
|
||||
void
|
||||
p_contact_set_presence(const PContact contact, const char * const presence)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user