Add occupants wrap option
Wrapping for the occupants panel like already exists for the roster panel. See `/occupants wrap on`. Regards https://github.com/boothj5/profanity/issues/690
This commit is contained in:
@@ -1641,6 +1641,7 @@ _get_group(preference_t pref)
|
||||
case PREF_HISTORY:
|
||||
case PREF_OCCUPANTS:
|
||||
case PREF_OCCUPANTS_JID:
|
||||
case PREF_OCCUPANTS_WRAP:
|
||||
case PREF_STATUSES:
|
||||
case PREF_STATUSES_CONSOLE:
|
||||
case PREF_STATUSES_CHAT:
|
||||
@@ -1788,6 +1789,8 @@ _get_key(preference_t pref)
|
||||
return "occupants";
|
||||
case PREF_OCCUPANTS_JID:
|
||||
return "occupants.jid";
|
||||
case PREF_OCCUPANTS_WRAP:
|
||||
return "occupants.wrap";
|
||||
case PREF_MUC_PRIVILEGES:
|
||||
return "privileges";
|
||||
case PREF_STATUSES:
|
||||
|
||||
@@ -150,6 +150,7 @@ typedef enum {
|
||||
PREF_STATUSBAR_ROOM,
|
||||
PREF_OMEMO_LOG,
|
||||
PREF_OMEMO_POLICY,
|
||||
PREF_OCCUPANTS_WRAP,
|
||||
} preference_t;
|
||||
|
||||
typedef struct prof_alias_t {
|
||||
|
||||
@@ -388,6 +388,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.wrap", PREF_OCCUPANTS_WRAP);
|
||||
_set_boolean_preference("roster", PREF_ROSTER);
|
||||
_set_boolean_preference("roster.offline", PREF_ROSTER_OFFLINE);
|
||||
_set_boolean_preference("roster.resource", PREF_ROSTER_RESOURCE);
|
||||
|
||||
Reference in New Issue
Block a user