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;
|
pending_out = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean added = roster_add(barejid, name, sub, NULL, pending_out);
|
gboolean added = roster_add(barejid, name, sub, pending_out);
|
||||||
|
|
||||||
if (!added) {
|
if (!added) {
|
||||||
log_warning("Attempt to add contact twice: %s", barejid);
|
log_warning("Attempt to add contact twice: %s", barejid);
|
||||||
@ -229,15 +229,13 @@ roster_reset_search_attempts(void)
|
|||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
roster_add(const char * const barejid, const char * const name,
|
roster_add(const char * const barejid, const char * const name,
|
||||||
const char * const subscription, const char * const offline_message,
|
const char * const subscription, gboolean pending_out)
|
||||||
gboolean pending_out)
|
|
||||||
{
|
{
|
||||||
gboolean added = FALSE;
|
gboolean added = FALSE;
|
||||||
PContact contact = g_hash_table_lookup(contacts, barejid);
|
PContact contact = g_hash_table_lookup(contacts, barejid);
|
||||||
|
|
||||||
if (contact == NULL) {
|
if (contact == NULL) {
|
||||||
contact = p_contact_new(barejid, name, subscription, offline_message,
|
contact = p_contact_new(barejid, name, subscription, NULL, pending_out);
|
||||||
pending_out);
|
|
||||||
g_hash_table_insert(contacts, strdup(barejid), contact);
|
g_hash_table_insert(contacts, strdup(barejid), contact);
|
||||||
if (name != NULL) {
|
if (name != NULL) {
|
||||||
autocomplete_add(name_ac, strdup(name));
|
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_jid(char *search_str);
|
||||||
char * roster_find_resource(char *search_str);
|
char * roster_find_resource(char *search_str);
|
||||||
gboolean roster_add(const char * const barejid, const char * const name,
|
gboolean roster_add(const char * const barejid, const char * const name,
|
||||||
const char * const subscription, const char * const offline_message,
|
const char * const subscription, gboolean pending_out);
|
||||||
gboolean pending_out);
|
|
||||||
void roster_change_name(const char * const barejid, const char * const new_name);
|
void roster_change_name(const char * const barejid, const char * const new_name);
|
||||||
char * roster_barejid_from_name(const char * const name);
|
char * roster_barejid_from_name(const char * const name);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user