diff options
author | Paul Fariello <paul@fariello.eu> | 2019-03-19 18:39:58 +0140 |
---|---|---|
committer | Paul Fariello <paul@fariello.eu> | 2019-04-10 17:12:31 +0200 |
commit | 9044e3732c5f6f53e3aa6f0205bd9e05b6caace3 (patch) | |
tree | 17b6f57b6b6bbf1e6ea0479d25928ac1feb30bfa /src/command/cmd_funcs.c | |
parent | e5b01ed71b415c51abcdb63bb4dc1482b0d9248d (diff) | |
download | profani-tty-9044e3732c5f6f53e3aa6f0205bd9e05b6caace3.tar.gz |
Ensure room isn't anonymous
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r-- | src/command/cmd_funcs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index f21da6e7..4c8accd0 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -7978,6 +7978,10 @@ cmd_omemo_start(ProfWin *window, const char *const command, gchar **args) /* TODO: Check room is configured correctly, no anonymous and access to * full jid */ + if (!caps_jid_has_feature(mucwin->roomjid, XMPP_FEATURE_MUC_NONANONYMOUS)) { + win_println(window, THEME_DEFAULT, '!', "MUC is anonymous, can't enable OMEMO."); + return TRUE; + } omemo_start_muc_sessions(mucwin->roomjid); mucwin->is_omemo = TRUE; |