style: Cleanup
This commit is contained in:
parent
a97f8bc372
commit
3fb5fd7eb8
@ -277,7 +277,6 @@ class OmemoManager {
|
|||||||
List<int>? keyAndHmac;
|
List<int>? keyAndHmac;
|
||||||
OmemoAuthenticatedMessage authMessage;
|
OmemoAuthenticatedMessage authMessage;
|
||||||
OmemoMessage? message;
|
OmemoMessage? message;
|
||||||
var ratchetCreated = false;
|
|
||||||
|
|
||||||
// If the ratchet already existed, we store it. If it didn't, oldRatchet will stay
|
// If the ratchet already existed, we store it. If it didn't, oldRatchet will stay
|
||||||
// null.
|
// null.
|
||||||
@ -372,7 +371,7 @@ class OmemoManager {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
return _InternalDecryptionResult(
|
return _InternalDecryptionResult(
|
||||||
ratchetCreated,
|
false,
|
||||||
false,
|
false,
|
||||||
await _decryptAndVerifyHmac(ciphertext, keyAndHmac),
|
await _decryptAndVerifyHmac(ciphertext, keyAndHmac),
|
||||||
);
|
);
|
||||||
|
@ -1054,7 +1054,7 @@ void main() {
|
|||||||
|
|
||||||
// Bob responds
|
// Bob responds
|
||||||
final bobResult4 = await bobManager.onOutgoingStanza(
|
final bobResult4 = await bobManager.onOutgoingStanza(
|
||||||
OmemoOutgoingStanza(
|
const OmemoOutgoingStanza(
|
||||||
[aliceJid],
|
[aliceJid],
|
||||||
"That's okay.",
|
"That's okay.",
|
||||||
),
|
),
|
||||||
@ -1182,7 +1182,7 @@ void main() {
|
|||||||
|
|
||||||
// Bob responds
|
// Bob responds
|
||||||
final bobResult4 = await bobManager.onOutgoingStanza(
|
final bobResult4 = await bobManager.onOutgoingStanza(
|
||||||
OmemoOutgoingStanza(
|
const OmemoOutgoingStanza(
|
||||||
[aliceJid],
|
[aliceJid],
|
||||||
"That's okay.",
|
"That's okay.",
|
||||||
),
|
),
|
||||||
@ -1241,7 +1241,7 @@ void main() {
|
|||||||
|
|
||||||
// Alice sends Bob a message
|
// Alice sends Bob a message
|
||||||
final aliceResult1 = await aliceManager.onOutgoingStanza(
|
final aliceResult1 = await aliceManager.onOutgoingStanza(
|
||||||
OmemoOutgoingStanza(
|
const OmemoOutgoingStanza(
|
||||||
[bobJid],
|
[bobJid],
|
||||||
'Hello World!',
|
'Hello World!',
|
||||||
),
|
),
|
||||||
@ -1265,7 +1265,7 @@ void main() {
|
|||||||
|
|
||||||
// Alice immediately sends another message
|
// Alice immediately sends another message
|
||||||
final aliceResult2 = await aliceManager.onOutgoingStanza(
|
final aliceResult2 = await aliceManager.onOutgoingStanza(
|
||||||
OmemoOutgoingStanza(
|
const OmemoOutgoingStanza(
|
||||||
[bobJid],
|
[bobJid],
|
||||||
'Hello Bob',
|
'Hello Bob',
|
||||||
),
|
),
|
||||||
@ -1301,7 +1301,7 @@ void main() {
|
|||||||
|
|
||||||
// Bob also sends a message
|
// Bob also sends a message
|
||||||
final bobResult3 = await bobManager.onOutgoingStanza(
|
final bobResult3 = await bobManager.onOutgoingStanza(
|
||||||
OmemoOutgoingStanza(
|
const OmemoOutgoingStanza(
|
||||||
[aliceJid],
|
[aliceJid],
|
||||||
'Hello Alice!',
|
'Hello Alice!',
|
||||||
),
|
),
|
||||||
@ -1328,7 +1328,7 @@ void main() {
|
|||||||
|
|
||||||
// Alice replies
|
// Alice replies
|
||||||
final aliceResult4 = await aliceManager.onOutgoingStanza(
|
final aliceResult4 = await aliceManager.onOutgoingStanza(
|
||||||
OmemoOutgoingStanza(
|
const OmemoOutgoingStanza(
|
||||||
[bobJid],
|
[bobJid],
|
||||||
'Hi Bob',
|
'Hi Bob',
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user