1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

Log encrypted messages by default to chatlog

In case chatlogs are available lets log everything by default.
Seems like most users expect this behaviour and I agree.
This commit is contained in:
Michael Vetter 2022-05-09 14:16:28 +02:00
parent b82a9e1c7f
commit e17ea040c9
2 changed files with 7 additions and 7 deletions

View File

@ -1742,7 +1742,7 @@ static struct cmd_t command_defs[] = {
{ "start [<contact>]", "Start PGP encrypted chat, current contact will be used if not specified." },
{ "end", "End PGP encrypted chat with the current recipient." },
{ "log on|off", "Enable or disable plaintext logging of PGP encrypted messages." },
{ "log redact", "Log PGP encrypted messages, but replace the contents with [redacted]. This is the default." },
{ "log redact", "Log PGP encrypted messages, but replace the contents with [redacted]." },
{ "char <char>", "Set the character to be displayed next to PGP encrypted messages." },
{ "announce <file>", "Announce a public key by pushing it on the XMPP Server" },
{ "discover <jid>", "Discover public keys of a jid. The OpenPGP Key IDs will be displayed" },
@ -1811,7 +1811,7 @@ static struct cmd_t command_defs[] = {
{ "policy always", "Set the global OTR policy to always, an error will be displayed if an OTR session cannot be initiated upon starting a conversation." },
{ "policy always <contact>", "Set the OTR policy to always for a specific contact." },
{ "log on|off", "Enable or disable plaintext logging of OTR encrypted messages." },
{ "log redact", "Log OTR encrypted messages, but replace the contents with [redacted]. This is the default." },
{ "log redact", "Log OTR encrypted messages, but replace the contents with [redacted]." },
{ "char <char>", "Set the character to be displayed next to OTR encrypted messages." },
{ "sendfile on|off", "Allow /sendfile to send unencrypted files while in an OTR session." })
CMD_EXAMPLES(
@ -2335,7 +2335,7 @@ static struct cmd_t command_defs[] = {
{ "start [<contact>]", "Start an OMEMO session with contact, or current recipient if omitted." },
{ "end", "End the current OMEMO session." },
{ "log on|off", "Enable or disable plaintext logging of OMEMO encrypted messages." },
{ "log redact", "Log OMEMO encrypted messages, but replace the contents with [redacted]. This is the default." },
{ "log redact", "Log OMEMO encrypted messages, but replace the contents with [redacted]." },
{ "fingerprint [<contact>]", "Show contact fingerprints, or current recipient if omitted." },
{ "char <char>", "Set the character to be displayed next to OMEMO encrypted messages." },
{ "trustmode manual", "Set the global OMEMO trust mode to manual, OMEMO keys has to be trusted manually." },

View File

@ -2223,7 +2223,7 @@ _get_default_string(preference_t pref)
case PREF_AUTOAWAY_MODE:
return "off";
case PREF_OTR_LOG:
return "redact";
return "on";
case PREF_OTR_POLICY:
return "manual";
case PREF_STATUSES_CONSOLE:
@ -2267,7 +2267,7 @@ _get_default_string(preference_t pref)
case PREF_TIME_LASTACTIVITY:
return "%d/%m/%y %H:%M:%S";
case PREF_PGP_LOG:
return "redact";
return "on";
case PREF_CONSOLE_MUC:
case PREF_CONSOLE_PRIVATE:
case PREF_CONSOLE_CHAT:
@ -2279,7 +2279,7 @@ _get_default_string(preference_t pref)
case PREF_STATUSBAR_ROOM:
return "room";
case PREF_OMEMO_LOG:
return "redact";
return "on";
case PREF_OMEMO_POLICY:
return "automatic";
case PREF_OMEMO_TRUST_MODE:
@ -2302,7 +2302,7 @@ _get_default_string(preference_t pref)
case PREF_URL_SAVE_CMD:
return NULL; // Default to built-in method.
case PREF_OX_LOG:
return "redact";
return "on";
default:
return NULL;
}