1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Fix offline roster contacts

Fix https://github.com/profanity-im/profanity/issues/1280
p_contact_set_presence() is triggered in
(roster_process_pending_presence) to set the presence to online
after the roster is displayed.

This happened to me _every time_ with one certain account on my server.
But not even once with other accounts on my server.

I don't understand why that is the case, but AFAIK the code should be
like it is in this PR anyways.

roster_process_pending_presence() was added there in
973a05d15a to fix
https://github.com/profanity-im/profanity/issues/1050
This commit is contained in:
Michael Vetter 2020-06-02 14:24:37 +02:00
parent 7ca03562b5
commit 3d7a3134af

View File

@ -133,11 +133,12 @@ sv_ev_login_account_success(char *account_name, gboolean secured)
void
sv_ev_roster_received(void)
{
roster_process_pending_presence();
if (prefs_get_boolean(PREF_ROSTER)) {
ui_show_roster();
}
roster_process_pending_presence();
char *account_name = session_get_account_name();
#ifdef HAVE_LIBGPGME