Purge omemo sendfile from config

https://github.com/profanity-im/profanity/pull/1375 added omemo media sharing support.

Thus the protection
(https://github.com/profanity-im/profanity/pull/1270) to sending files plainly in an omemo chat isn't
needed anymore and got removed.

Lets clean it from the config file.
This commit is contained in:
Michael Vetter
2020-12-09 08:40:55 +01:00
parent 55f09b6152
commit 5179b253c4

View File

@@ -183,6 +183,11 @@ _prefs_load(void)
g_key_file_remove_key(prefs, PREF_GROUP_LOGGING, "avatar.cmd", NULL); g_key_file_remove_key(prefs, PREF_GROUP_LOGGING, "avatar.cmd", NULL);
} }
// 0.10 will have omemo media sharing. so disabling of senfile introduced in 0.9 is not needed (#1270)
if (g_key_file_has_key(prefs, PREF_GROUP_OMEMO, "sendfile", NULL)) {
g_key_file_remove_key(prefs, PREF_GROUP_OMEMO, "sendfile", NULL);
}
_save_prefs(); _save_prefs();
boolean_choice_ac = autocomplete_new(); boolean_choice_ac = autocomplete_new();