Compare commits

..

No commits in common. "1cc266c675e7b7ff221ceb6544aca711c00e4569" and "c9c45baabc00a779ace90ebad08de4b0f26f8ecd" have entirely different histories.

View File

@ -459,15 +459,9 @@ abstract class BaseOmemoManager extends XmppManagerBase {
); );
} }
final envelopeChildren = envelope.firstTag('content')?.children; children.addAll(
if (envelopeChildren != null) { envelope.firstTag('content')!.children,
children.addAll( );
// Do not add forbidden elements from the envelope
envelopeChildren.where(shouldEncryptElement),
);
} else {
logger.warning('Invalid envelope element: No <content /> element');
}
if (!checkAffixElements(envelope, stanza.from!, ourJid)) { if (!checkAffixElements(envelope, stanza.from!, ourJid)) {
other['encryption_error'] = InvalidAffixElementsException(); other['encryption_error'] = InvalidAffixElementsException();