Skip to content

Commit

Permalink
Fix offline roster contacts
Browse files Browse the repository at this point in the history
Fix #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
973a05d to fix
#1050
  • Loading branch information
jubalh committed Jun 2, 2020
1 parent 7ca0356 commit 3d7a313
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/event/server_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d7a313

Please sign in to comment.