From 5179b253c4ac7283a2c73cb5bc0da440c8012de1 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 9 Dec 2020 08:40:55 +0100 Subject: [PATCH] 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. --- src/config/preferences.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/config/preferences.c b/src/config/preferences.c index 9d7d4f7b..98ac5a0d 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -182,6 +182,11 @@ _prefs_load(void) g_key_file_set_string(prefs, PREF_GROUP_EXECUTABLES, "avatar.cmd", value); 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();