feat: Remove serialization code

This commit is contained in:
2023-06-15 18:11:35 +02:00
parent 6c301ab88f
commit 6e734ec0c3
4 changed files with 6 additions and 276 deletions

View File

@@ -414,7 +414,12 @@ class OmemoManager {
} else {
// Check if we even have a ratchet
if (!_ratchetMap.containsKey(ratchetKey)) {
// TODO: Build a session with the device
// TODO: Check if we recently failed to build a session with the device
// This causes omemo_dart to build a session with the device.
if (!_deviceList[stanza.bareSenderJid]!.contains(stanza.senderDeviceId)) {
_deviceList[stanza.bareSenderJid]!.add(stanza.senderDeviceId);
}
await sendOmemoHeartbeat(stanza.bareSenderJid);
return DecryptionResult(
null,