Add option to only allow messages from jids in roster

`/silence on` will throw away all messages (type: chat, normal) that
come from jids that are not in the roster.

Implement https://github.com/profanity-im/profanity/issues/955
This commit is contained in:
Michael Vetter
2021-07-01 18:02:03 +02:00
parent 226cffe75b
commit 06482fdaef
9 changed files with 62 additions and 1 deletions

View File

@@ -2178,6 +2178,16 @@ cons_mam_setting(void)
}
}
void
cons_silence_setting(void)
{
if (prefs_get_boolean(PREF_SILENCE_NON_ROSTER)) {
cons_show("Block all messages from JIDs that are not in the roster (/silence) : ON");
} else {
cons_show("Block all messages from JIDs that are not in the roster (/silence) : OFF");
}
}
void
cons_show_connection_prefs(void)
{