Compare commits
No commits in common. "1cc266c675e7b7ff221ceb6544aca711c00e4569" and "c9c45baabc00a779ace90ebad08de4b0f26f8ecd" have entirely different histories.
1cc266c675
...
c9c45baabc
@ -459,15 +459,9 @@ abstract class BaseOmemoManager extends XmppManagerBase {
|
||||
);
|
||||
}
|
||||
|
||||
final envelopeChildren = envelope.firstTag('content')?.children;
|
||||
if (envelopeChildren != null) {
|
||||
children.addAll(
|
||||
// Do not add forbidden elements from the envelope
|
||||
envelopeChildren.where(shouldEncryptElement),
|
||||
);
|
||||
} else {
|
||||
logger.warning('Invalid envelope element: No <content /> element');
|
||||
}
|
||||
children.addAll(
|
||||
envelope.firstTag('content')!.children,
|
||||
);
|
||||
|
||||
if (!checkAffixElements(envelope, stanza.from!, ourJid)) {
|
||||
other['encryption_error'] = InvalidAffixElementsException();
|
||||
|
Loading…
Reference in New Issue
Block a user