xep-0308: Dont allow to correct MUC PMs

People could change messages of other people if the nick isn't
registered.
This commit is contained in:
Michael Vetter
2020-02-12 13:09:58 +01:00
parent ed1d49bf0c
commit 66d3f572f9
3 changed files with 0 additions and 10 deletions

View File

@@ -972,14 +972,6 @@ _private_chat_handler(xmpp_stanza_t *const stanza)
message->id = strdup(id);
}
xmpp_stanza_t *replace_id_stanza = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_LAST_MESSAGE_CORRECTION);
if (replace_id_stanza) {
const char *replace_id = xmpp_stanza_get_id(replace_id_stanza);
if (replace_id) {
message->replace_id = strdup(replace_id);
}
}
// check omemo encryption
#ifdef HAVE_OMEMO
message->plain = omemo_receive_message(stanza, &message->trusted);