mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Removed unused offline_msg parameter from roster_add
This commit is contained in:
parent
7b20d8d4f4
commit
c4e279202b
@ -171,7 +171,7 @@ _roster_handle_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
|
||||
pending_out = TRUE;
|
||||
}
|
||||
|
||||
gboolean added = roster_add(barejid, name, sub, NULL, pending_out);
|
||||
gboolean added = roster_add(barejid, name, sub, pending_out);
|
||||
|
||||
if (!added) {
|
||||
log_warning("Attempt to add contact twice: %s", barejid);
|
||||
@ -229,15 +229,13 @@ roster_reset_search_attempts(void)
|
||||
|
||||
gboolean
|
||||
roster_add(const char * const barejid, const char * const name,
|
||||
const char * const subscription, const char * const offline_message,
|
||||
gboolean pending_out)
|
||||
const char * const subscription, gboolean pending_out)
|
||||
{
|
||||
gboolean added = FALSE;
|
||||
PContact contact = g_hash_table_lookup(contacts, barejid);
|
||||
|
||||
if (contact == NULL) {
|
||||
contact = p_contact_new(barejid, name, subscription, offline_message,
|
||||
pending_out);
|
||||
contact = p_contact_new(barejid, name, subscription, NULL, pending_out);
|
||||
g_hash_table_insert(contacts, strdup(barejid), contact);
|
||||
if (name != NULL) {
|
||||
autocomplete_add(name_ac, strdup(name));
|
||||
|
@ -139,8 +139,7 @@ char * roster_find_contact(char *search_str);
|
||||
char * roster_find_jid(char *search_str);
|
||||
char * roster_find_resource(char *search_str);
|
||||
gboolean roster_add(const char * const barejid, const char * const name,
|
||||
const char * const subscription, const char * const offline_message,
|
||||
gboolean pending_out);
|
||||
const char * const subscription, gboolean pending_out);
|
||||
void roster_change_name(const char * const barejid, const char * const new_name);
|
||||
char * roster_barejid_from_name(const char * const name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user