aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2019-03-15 19:32:28 +0140
committerPaul Fariello <paul@fariello.eu>2019-04-10 17:12:31 +0200
commitcf528383bd78306f41b4645eff0d286a017d2d71 (patch)
tree74b8747f55d82049268f6739e3e5c74c6f161897 /src/command
parent21f247d0eb67b90e0e012575c758b0f663d3b292 (diff)
downloadprofani-tty-cf528383bd78306f41b4645eff0d286a017d2d71.tar.gz
Allow to start OMEMO in MUC
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_funcs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index f094be48..a882fa6d 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -7973,6 +7973,14 @@ cmd_omemo_start(ProfWin *window, const char *const command, gchar **args)
omemo_start_session(chatwin->barejid);
chatwin->is_omemo = TRUE;
} else if (window->type == WIN_MUC) {
+ ProfMucWin *mucwin = (ProfMucWin*)window;
+ assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK);
+
+ /* TODO: Check room is configured correctly, no anonymous and access to
+ * full jid */
+ omemo_start_muc_sessions(mucwin->barejid);
+
+ mucwin->is_omemo = TRUE;
} else {
win_println(window, THEME_DEFAULT, '-', "You must be in a regular chat window to start an OMEMO session.");
return TRUE;