Commit Graph

35 Commits (ad24ad28d665074dddaf5328167eda6f7272f5ee)

Author SHA1 Message Date
Audric Ackermann 394030b711
remove getDefaultTTL and use Constants values instead 5 years ago
Vincent 5216cc2c2e merge clearnet 5 years ago
Vincent c020eddef6 constants-to-ts 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 13811233b6 Add session request expiry checks 5 years ago
Audric Ackermann 9baefb573e
fix tests 5 years ago
Audric Ackermann 439ea09027
lint 5 years ago
Audric Ackermann 0a2af13cb1
start of fix of session-request processing 5 years ago
Audric Ackermann 457a94790c
fix await of promises in if statements 5 years ago
Audric Ackermann 28fb1dd12a
address PR reviews 5 years ago
Audric Ackermann 4d2b08f4a2
remove getSessionRequest 5 years ago
Audric Ackermann 10e095ba9d
Merge remote-tracking branch 'upstream/clearnet' into receiver-remove-friend-request-logic 5 years ago
Mikunj 93c19395c1 Change back to old window syntax and allow stubbing of it 5 years ago
Audric Ackermann 66de8d9648
remove plenty of the friend logic 5 years ago
Vincent affba056d2 just-cache 5 years ago
Audric Ackermann 492cc96ad2
updateSessionTimestamp: return false if no write to DB needed 5 years ago
Audric Ackermann f17ffd295a
Merge remote-tracking branch 'upstream/clearnet' into message-sending-refactor 5 years ago
Audric Ackermann 4c07bc06fd
address reviews 5 years ago
Audric Ackermann 7a797737e0
rename SessionReset -> SessionRequest 5 years ago
Audric Ackermann 2b58aff532
use pubkeys and toRawMessage() 5 years ago
Audric Ackermann da1edab63d
Merge remote-tracking branch 'upstream/clearnet' into message-sending-refactor 5 years ago
Audric Ackermann 73c4020daf
throw error on sendSessionRequest and log it in sendSessionRequestIfNeeded 5 years ago
Audric Ackermann 886f279540
hide errors of sendSessionRequest message.send() 5 years ago
Audric Ackermann dc00923f17
add SessionProtocol test 5 years ago
Mikunj d1bfcd340b Fix imports.
Fix closed group messages.
5 years ago
Audric Ackermann 15f71cb9c8
move sessionprotocol to a full static class 5 years ago
Audric Ackermann a92f4ab8da
address reviews 5 years ago
Audric Ackermann 935ac8d8f9
lint 5 years ago
Audric Ackermann 1dec669d11
make sessionProtoco read and write to db 5 years ago
Audric Ackermann 101fbedf0a
update SessionProtocol. need merge to go further 5 years ago
Audric Ackermann bfade45b00
add start of SessionProtocol 5 years ago
Mikunj e7826cfb34 linting 5 years ago
Mikunj e0f27ba712 basic classes for message sending 5 years ago