mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
roster_get_contacts_nooffline only gets contacts that are not offline
This commit is contained in:
parent
a980fbe0bd
commit
e113fd2b1d
@ -317,6 +317,7 @@ roster_get_contacts_nooffline(void)
|
|||||||
|
|
||||||
g_hash_table_iter_init(&iter, contacts);
|
g_hash_table_iter_init(&iter, contacts);
|
||||||
while (g_hash_table_iter_next(&iter, &key, &value)) {
|
while (g_hash_table_iter_next(&iter, &key, &value)) {
|
||||||
|
if(strcmp(p_contact_presence(value), "offline"))
|
||||||
result = g_slist_insert_sorted(result, value, (GCompareFunc)_compare_contacts);
|
result = g_slist_insert_sorted(result, value, (GCompareFunc)_compare_contacts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user