Hocuri
f8a46fe3cf
test(python): Extend test_qr_securejoin_broadcast and make it less flaky
2025-09-08 22:29:04 +02:00
Hocuri
302059cd63
clippy
2025-09-05 22:25:39 +02:00
Hocuri
ae4b0fdb4e
Adapt golden tests to the fact that 'Messages are end-to-end encrypted.' is always added now
2025-09-05 22:21:43 +02:00
Hocuri
b5a54aa6cf
fix: Scaleup contact on securejoin, send more events, use correct create_blocked
2025-09-05 21:52:25 +02:00
Hocuri
01d9acbf6a
test_qr_securejoin_broadcast(): Test a few more things
2025-09-05 21:52:25 +02:00
Hocuri
60e4899b3a
test: Add python test test_qr_securejoin_broadcast, and fix some small bugs I found on the way
2025-09-05 21:52:25 +02:00
Hocuri
8eb5fc528f
Adapt to things that changed when I rebased
2025-09-05 21:52:25 +02:00
Hocuri
286f913f6e
refactor: No need for observe_securejoin_on_other_device() for securejoin v2
2025-09-05 21:52:25 +02:00
Hocuri
6e68eb1c5d
Resolve identity-misbinding TODO
2025-09-05 21:52:25 +02:00
Hocuri
153ced7141
Remove outdated TODO
2025-09-05 21:52:25 +02:00
Hocuri
4a9af2b600
refactor: Remove superflous check for ChatGroupMemberAdded
2025-09-05 21:52:25 +02:00
Hocuri
0c25646ac2
test: Add golden test for Alice's side, too, in test_sync_broadcast
2025-09-05 21:52:25 +02:00
Hocuri
019da70c8a
test: When a golden test fails, print some extra info
2025-09-05 21:52:19 +02:00
Hocuri
19159c905f
test: Rename alice0, alice1 to alice1, alice2 in test_sync_muted()
...
This makes the automatically generated "alice, alice2" context names
correct
2025-09-03 17:56:15 +02:00
Hocuri
51a36d23a2
small refactoring
2025-09-03 17:56:14 +02:00
Hocuri
f7844e97c2
fix: Don't show wrong system message on Bob's second device
...
Before this, Bob's second device showed a system message
"⚠️ It seems you are using Delta Chat on multiple devices that cannot
decrypt each other's outgoing messages..."
2025-09-03 17:56:14 +02:00
Hocuri
a3d1e3bc89
Remove TODO
2025-09-03 17:56:14 +02:00
Hocuri
dc5237f530
fix: Remove panic!() call
2025-09-03 17:56:14 +02:00
Hocuri
f66f6f3e92
refactor: Rename to symm_encrypt_message()
2025-09-03 17:56:14 +02:00
Hocuri
9b49386bc8
fix: Protect against DOS attacks via a message with many esks using expensive-to-compute s2k algos
2025-09-03 17:56:14 +02:00
Hocuri
40f4eea049
feat: Sync Alice's verification on Bob's side
2025-09-03 17:56:14 +02:00
Hocuri
00ba559562
Resolve some small TODOs
2025-09-03 17:56:14 +02:00
Hocuri
3a648698ee
resolve some small TODOs
2025-09-03 17:56:14 +02:00
Hocuri
61e0d14eed
refactor: Remove small code duplication
2025-09-03 17:56:14 +02:00
Hocuri
2efbbcc669
bench: Improve benchmark_decrypting.rs benchmark
2025-09-03 17:56:13 +02:00
Hocuri
479a5632fb
feat: Make reacting to v2 invites generic over the type of the invite (contact/group/broadcast)
2025-09-03 17:56:13 +02:00
Hocuri
9dc590cb35
feat: Rename vb-request-v2 -> vb-request-with-auth
...
Turns out that Alice reacts to a request-v2 message in exactly the same
way as to a request-with-auth message. So, no need to distinguish here.
2025-09-03 17:56:13 +02:00
Hocuri
956519cd98
fix: Make sure that only the channel owner can write into the chat
2025-09-03 17:56:13 +02:00
Hocuri
90d4856a1c
comments/naming: Make sure that I consistently use shared_secret
2025-09-03 17:56:13 +02:00
Hocuri
792c05fc3e
fix: Don't show a weird 'Secure-Join: vb-request-v2 message' in Alice's 1:1 chat a recipient
2025-09-03 17:56:13 +02:00
Hocuri
3cf7746ceb
Remove unnecessary TODO
2025-09-03 17:56:13 +02:00
Hocuri
0acc34a882
Notify a removed member that they were removed
2025-09-03 17:56:13 +02:00
Hocuri
378896eca3
docs: Fix wrong comment on msg_del_member_local()
2025-09-03 17:56:13 +02:00
Hocuri
265ac4e30b
fix: Show only one member-added message for Bob
2025-09-03 17:56:12 +02:00
Hocuri
8d89dcc65f
Add golden test that only one member-added message is shown for Bob
2025-09-03 17:56:12 +02:00
Hocuri
a858709301
Use translatable message for broadcast-joining
2025-09-03 17:56:12 +02:00
Hocuri
3d5e97eced
No clippy warnings anymore!
2025-09-03 17:56:12 +02:00
Hocuri
5da6ca1ec4
test: Improve test_send_avatar_in_securejoin()
2025-09-03 17:56:12 +02:00
Hocuri
58d0fd39b5
clippy
2025-09-03 17:56:12 +02:00
Hocuri
40e3c34f59
refactor: It's not actually necessary for Alice to remember how the message was encrypted
2025-09-03 17:56:12 +02:00
Hocuri
1377a77ea8
refactor: Use the same decode_name() function for the contact name, remove redundant check for grpid.is_some()
...
If grpid is none, the group/brodacast name isn't used, anyways
2025-09-03 17:56:11 +02:00
Hocuri
db32f1142c
Don't include the broadcast's shared secret in the QR code
2025-09-03 17:56:11 +02:00
Hocuri
738f6c1799
feat: Transfer the broadcast secret in an encrypted message rather than directly in the QR code
2025-09-03 17:56:11 +02:00
Hocuri
e1abaebeb5
WIP, untested: Receiving side of passing broadcast secret in a message
2025-09-03 17:56:11 +02:00
Hocuri
0978a46ab6
WIP, untested: Sending side of transferring the secret in member-added message
2025-09-03 17:56:11 +02:00
Hocuri
410048a9e1
Improve TODOs
2025-09-03 17:56:11 +02:00
Hocuri
72336ebb8a
Add benchmark for message decryption
2025-09-03 17:56:11 +02:00
Hocuri
fca8948e4c
Speed up message decryption by not iterating in the s2k algorithm
...
The passphrase has as much entropy as the session key, so, there is no
point in making the computation slow by iterating.
2025-09-03 17:56:11 +02:00
Hocuri
d431f2ebd3
Add benchmark for message decryption
2025-09-03 17:56:10 +02:00
Hocuri
ad0e3179dd
Remove unused and problematic ensure!
...
`secret_keys.is_empty()` only checked whether any secret keys were
passed. This is not helpful, and made decrypting fail in the benchmark.
2025-09-03 17:56:10 +02:00