style: Cleanup

This commit is contained in:
PapaTutuWawa 2023-01-22 19:07:02 +01:00
parent a97f8bc372
commit 3fb5fd7eb8
2 changed files with 7 additions and 8 deletions

View File

@ -277,7 +277,6 @@ class OmemoManager {
List<int>? keyAndHmac;
OmemoAuthenticatedMessage authMessage;
OmemoMessage? message;
var ratchetCreated = false;
// If the ratchet already existed, we store it. If it didn't, oldRatchet will stay
// null.
@ -372,7 +371,7 @@ class OmemoManager {
try {
return _InternalDecryptionResult(
ratchetCreated,
false,
false,
await _decryptAndVerifyHmac(ciphertext, keyAndHmac),
);

View File

@ -1054,7 +1054,7 @@ void main() {
// Bob responds
final bobResult4 = await bobManager.onOutgoingStanza(
OmemoOutgoingStanza(
const OmemoOutgoingStanza(
[aliceJid],
"That's okay.",
),
@ -1182,7 +1182,7 @@ void main() {
// Bob responds
final bobResult4 = await bobManager.onOutgoingStanza(
OmemoOutgoingStanza(
const OmemoOutgoingStanza(
[aliceJid],
"That's okay.",
),
@ -1241,7 +1241,7 @@ void main() {
// Alice sends Bob a message
final aliceResult1 = await aliceManager.onOutgoingStanza(
OmemoOutgoingStanza(
const OmemoOutgoingStanza(
[bobJid],
'Hello World!',
),
@ -1265,7 +1265,7 @@ void main() {
// Alice immediately sends another message
final aliceResult2 = await aliceManager.onOutgoingStanza(
OmemoOutgoingStanza(
const OmemoOutgoingStanza(
[bobJid],
'Hello Bob',
),
@ -1301,7 +1301,7 @@ void main() {
// Bob also sends a message
final bobResult3 = await bobManager.onOutgoingStanza(
OmemoOutgoingStanza(
const OmemoOutgoingStanza(
[aliceJid],
'Hello Alice!',
),
@ -1328,7 +1328,7 @@ void main() {
// Alice replies
final aliceResult4 = await aliceManager.onOutgoingStanza(
OmemoOutgoingStanza(
const OmemoOutgoingStanza(
[bobJid],
'Hi Bob',
),