mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 13:16:21 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user