Commit Graph

24 Commits (adf0d03d35d5475dd76c149a7056df8350f33b50)

Author SHA1 Message Date
Audric Ackermann adf0d03d35
add test for the MessageEncrypter using Session protocol 4 years ago
Audric Ackermann 1045bfeba8 add SessionProtocol wip 4 years ago
Audric Ackermann cd3ec67099 add the encryptWithSessionProtocol method 4 years ago
Audric Ackermann f28dfe5a94 use fallbacks for message even if we have a session with the device 4 years ago
Audric Ackermann 215c964fab
fix padding for medium group 5 years ago
Audric Ackermann 04063cd0fb
make medium group pubkey be in bytes rather than str 5 years ago
Maxim Shishmarev 6351fc1d4c Lint 5 years ago
Maxim Shishmarev f6223ce5ab Use message queue for medium group chat messages 5 years ago
Maxim Shishmarev 237bd84b35 Fix medium group sending for single device users; protocol changes 5 years ago
Vincent 68f2a90f7c pubkeys-in-message-encryptor-init 5 years ago
Mikunj 646973e330 Made changes to how messages are sent.
Instead of blocking the message queue when we don't have a session, we instead just send out a session request and send the queued messages using fallback encryption.
This means that users will be able to message right away without having to wait.
The only down side is that all messages sent before sessions are established will be using the weaker encryption.

This change also means we have to detach session requests from envelope type (which is a good thing) and thus now a message is a session request if it contains a preKeyBundle.
5 years ago
Mikunj 93c19395c1 Change back to old window syntax and allow stubbing of it 5 years ago
Mikunj Varsani 542615961c
Merge pull request #1170 from Mikunj/message-sender-retry
Message sender retry
5 years ago
Mikunj 3b8b9f7306 Added comments 5 years ago
Audric Ackermann f17ffd295a
Merge remote-tracking branch 'upstream/clearnet' into message-sending-refactor 5 years ago
Audric Ackermann 7a797737e0
rename SessionReset -> SessionRequest 5 years ago
Mikunj 653efaf9cf Fixed libsignal-protocol declaration 5 years ago
Mikunj 1dad49057b Implement MessageSender 5 years ago
Mikunj 21e2469b75 Add more tests 5 years ago
Mikunj cd58e9b86e Add utils for stubbing.
Added ImportMock for easier es6 stubbing.
5 years ago
Mikunj b644e2a05f Added more types.
Finalise MessageEncrypter.
5 years ago
Mikunj 36762dbbf2 Added libsignal-protocol typings.
Added MessageEncrypter.
5 years ago
Mikunj e7826cfb34 linting 5 years ago
Mikunj e0f27ba712 basic classes for message sending 5 years ago