mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 05:36:22 +00: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:
@@ -133,11 +133,12 @@ sv_ev_login_account_success(char *account_name, gboolean secured)
|
|||||||
void
|
void
|
||||||
sv_ev_roster_received(void)
|
sv_ev_roster_received(void)
|
||||||
{
|
{
|
||||||
|
roster_process_pending_presence();
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_ROSTER)) {
|
if (prefs_get_boolean(PREF_ROSTER)) {
|
||||||
ui_show_roster();
|
ui_show_roster();
|
||||||
}
|
}
|
||||||
|
|
||||||
roster_process_pending_presence();
|
|
||||||
char *account_name = session_get_account_name();
|
char *account_name = session_get_account_name();
|
||||||
|
|
||||||
#ifdef HAVE_LIBGPGME
|
#ifdef HAVE_LIBGPGME
|
||||||
|
|||||||
Reference in New Issue
Block a user