From 2eb2bf3508de7ef810c50d9d7924d18120e67e1a Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 7 Jun 2019 20:37:12 +0200 Subject: [PATCH] Print omemo start related msgs into correct window Print them in the window of the contact. Not just the current window. Fix https://github.com/profanity-im/profanity/issues/1093 --- src/command/cmd_funcs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 9688cb09f2..c822decb03 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -8075,17 +8075,17 @@ cmd_omemo_start(ProfWin *window, const char *const command, gchar **args) ui_focus_win((ProfWin*)chatwin); if (chatwin->pgp_send) { - win_println(window, THEME_DEFAULT, '!', "You must disable PGP encryption before starting an OMEMO session."); + win_println((ProfWin*)chatwin, THEME_DEFAULT, '!', "You must disable PGP encryption before starting an OMEMO session."); return TRUE; } if (chatwin->is_otr) { - win_println(window, THEME_DEFAULT, '!', "You must disable OTR encryption before starting an OMEMO session."); + win_println((ProfWin*)chatwin, THEME_DEFAULT, '!', "You must disable OTR encryption before starting an OMEMO session."); return TRUE; } if (chatwin->is_omemo) { - win_println(window, THEME_DEFAULT, '!', "You are already in an OMEMO session."); + win_println((ProfWin*)chatwin, THEME_DEFAULT, '!', "You are already in an OMEMO session"); return TRUE; }