Ensure room isn't anonymous
This commit is contained in:
@@ -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
|
/* TODO: Check room is configured correctly, no anonymous and access to
|
||||||
* full jid */
|
* 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);
|
omemo_start_muc_sessions(mucwin->roomjid);
|
||||||
|
|
||||||
mucwin->is_omemo = TRUE;
|
mucwin->is_omemo = TRUE;
|
||||||
|
|||||||
@@ -60,6 +60,7 @@
|
|||||||
#define XMPP_FEATURE_RECEIPTS "urn:xmpp:receipts"
|
#define XMPP_FEATURE_RECEIPTS "urn:xmpp:receipts"
|
||||||
#define XMPP_FEATURE_LASTACTIVITY "jabber:iq:last"
|
#define XMPP_FEATURE_LASTACTIVITY "jabber:iq:last"
|
||||||
#define XMPP_FEATURE_MUC "http://jabber.org/protocol/muc"
|
#define XMPP_FEATURE_MUC "http://jabber.org/protocol/muc"
|
||||||
|
#define XMPP_FEATURE_MUC_NONANONYMOUS "http://jabber.org/protocol/muc#muc_nonanonymous"
|
||||||
#define XMPP_FEATURE_COMMANDS "http://jabber.org/protocol/commands"
|
#define XMPP_FEATURE_COMMANDS "http://jabber.org/protocol/commands"
|
||||||
#define XMPP_FEATURE_OMEMO_DEVICELIST_NOTIFY "eu.siacs.conversations.axolotl.devicelist+notify"
|
#define XMPP_FEATURE_OMEMO_DEVICELIST_NOTIFY "eu.siacs.conversations.axolotl.devicelist+notify"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user