MUC: Show offline members in sidebar

This commit is contained in:
Thorben Günther
2021-03-05 13:29:36 +01:00
parent 5c5c453219
commit f1780f0017
10 changed files with 96 additions and 10 deletions

View File

@@ -1806,6 +1806,7 @@ _get_group(preference_t pref)
case PREF_HISTORY:
case PREF_OCCUPANTS:
case PREF_OCCUPANTS_JID:
case PREF_OCCUPANTS_OFFLINE:
case PREF_OCCUPANTS_WRAP:
case PREF_STATUSES:
case PREF_STATUSES_CONSOLE:
@@ -1978,6 +1979,8 @@ _get_key(preference_t pref)
return "occupants";
case PREF_OCCUPANTS_JID:
return "occupants.jid";
case PREF_OCCUPANTS_OFFLINE:
return "occupants.offline";
case PREF_OCCUPANTS_WRAP:
return "occupants.wrap";
case PREF_MUC_PRIVILEGES:

View File

@@ -67,6 +67,7 @@ typedef enum {
PREF_OCCUPANTS,
PREF_OCCUPANTS_SIZE,
PREF_OCCUPANTS_JID,
PREF_OCCUPANTS_OFFLINE,
PREF_ROSTER,
PREF_ROSTER_SIZE,
PREF_ROSTER_OFFLINE,

View File

@@ -305,6 +305,7 @@ _load_preferences(void)
_set_boolean_preference("resource.message", PREF_RESOURCE_MESSAGE);
_set_boolean_preference("occupants", PREF_OCCUPANTS);
_set_boolean_preference("occupants.jid", PREF_OCCUPANTS_JID);
_set_boolean_preference("occupants.offline", PREF_OCCUPANTS_OFFLINE);
_set_boolean_preference("occupants.wrap", PREF_OCCUPANTS_WRAP);
_set_boolean_preference("roster", PREF_ROSTER);
_set_boolean_preference("roster.offline", PREF_ROSTER_OFFLINE);