about summary refs log tree commit diff stats
path: root/src/command/cmd_funcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r--src/command/cmd_funcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index cf826fe5..2397ccfc 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -4922,8 +4922,8 @@ cmd_sendfile(ProfWin* window, const char* const command, gchar** args)
         goto out;
     }
 
-#ifdef HAVE_OMEMO
     if (omemo_enabled) {
+#ifdef HAVE_OMEMO
         char* err = NULL;
         alt_scheme = OMEMO_AESGCM_URL_SCHEME;
         alt_fragment = _add_omemo_stream(&fd, &fh, &err);
@@ -4932,8 +4932,8 @@ cmd_sendfile(ProfWin* window, const char* const command, gchar** args)
             win_println(window, THEME_ERROR, "-", err);
             goto out;
         }
-    }
 #endif
+    }
 
     HTTPUpload* upload = malloc(sizeof(HTTPUpload));
     upload->window = window;