Skip to content

Commit

Permalink
Print omemo start related msgs into correct window
Browse files Browse the repository at this point in the history
Print them in the window of the contact. Not just the current window.
Fix #1093
  • Loading branch information
jubalh committed Jun 7, 2019
1 parent bee7846 commit 2eb2bf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/command/cmd_funcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2eb2bf3

Please sign in to comment.