Commit Graph

530 Commits (35321c2bcbad006dc0168b8ad9b49a1a1379e9a5)

Author SHA1 Message Date
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
Maxim Shishmarev 7724df25cc Fix incorrect handling of pow update 5 years ago
Audric Ackermann f03d66de38
use active_at to show and sync real contacts from contact list 5 years ago
Audric Ackermann 4aa0667686
OpenGroup: get conversation from conversationController rather than appDotNetApi 5 years ago
Audric Ackermann 880e039652
handle grantSignature undefined 5 years ago
Audric Ackermann 7fe188417a
Merge pull request #1227 from Bilb/fix-1.0.9-interoperability
include verb and path on outgoing websocket message
5 years ago
Audric Ackermann f8aa50546b
include verb and path on outgoing websocket message 5 years ago
Vincent 6cb05c3677 review-fixes 5 years ago
Vincent 4a13b1e6bb attemptConnection-complete 5 years ago
Vincent baf3050b1d @params 5 years ago
Vincent 3a3d412542 linted 5 years ago
Vincent e72970fdc7 load-conv-public 5 years ago
Vincent a005aa8a2e onLoading join 5 years ago
Vincent b05d2e6725 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into https-open-group 5 years ago
Audric Ackermann d5cfcf9edc
Merge pull request #1223 from Bilb/various-closed-group-fixes
* fix display name and avatar to be shown when message is coming from a secondary device
* fix show of expiretimer in the group conversation when it is for it.
* fix a bug creating empty conversation when sync closed group message is received on secondary device
* trigger an expiretimer update message to all members when updating a group.
* trigger an expiretimer update message when sending back group details (after a requestGroupInfo)
5 years ago
Vincent 6111cb2d17 server-regex-tighten 5 years ago
Audric Ackermann 696fbd8d7a
address review 5 years ago
Vincent f6ae5386e9 getting opengroup conversation 5 years ago
Maxim Shishmarev a2b80a5e68 Address review comments 5 years ago
Vincent ab966e600a OpenGrop joining 5 years ago
Audric Ackermann 178060e4d2
handle Uint8Array in protobuf.convertToTS() 5 years ago
Maxim Shishmarev 29fe64f5d5 Fix retrieving with pubkey object 5 years ago
Vincent 54209e98a8 propogate join channel erros 5 years ago
Vincent 39b41cb222 joining-open-groups 5 years ago
Maxim Shishmarev ccc487528d Fix edkey extraction 5 years ago
Vincent 8484b9d3f6 regex-fiddling 5 years ago
Vincent ea23df2986 OpenGroup strict SSL verification 5 years ago
Audric Ackermann 15b8600e25
fix display name and avatar not being updated when message from secondary 5 years ago
Vincent bcad497c7f regex-for-http 5 years ago
Maxim Shishmarev 6919f53a45 Move constants to preload.js 5 years ago
Maxim Shishmarev 12f73e23f2 Move onion requests to typescript 5 years ago
Audric Ackermann ed48818867
include old avatar and expireTimer on groupUpdate 5 years ago
Audric Ackermann 809b4d9461
Merge remote-tracking branch 'upstream/clearnet' into various-closed-group-fixes 5 years ago
Audric Ackermann 235ab0bfb3
create convo for both primary and secondary in receivemessage 5 years ago
Maxim Shishmarev d5a98b8b47 Remove swarm nodes from conversations 5 years ago
Mikunj 8f82e7a442 Fix multi device pairing 5 years ago
Mikunj 669648d9cb Fix expire timer 5 years ago
Mikunj Varsani 416d5f69c0
Merge pull request #1211 from Mikunj/closed-group-fixes
Closed group fixes
5 years ago
Maxim Shishmarev 6a41aa1d88
Merge pull request #1210 from msgmaxim/fix-some-tests
Stub out swarm polling
5 years ago
Mikunj 2d5230715f Merge branch 'clearnet' into closed-group-fixes 5 years ago
Maxim Shishmarev 9cdb7710ec Stub out swarm polling 5 years ago
Mikunj c422c9e2ad Lint 5 years ago
Mikunj fd547941d6 Fix sync message issue 5 years ago
Mikunj 8d11660b13 Fix attachments 5 years ago
Maxim Shishmarev 7e737a3ccd Merge branch 'clearnet' into refactor-polling 5 years ago
Maxim Shishmarev 114f6d083f Fix pubkey comparison 5 years ago
Maxim Shishmarev 7dd9469074 Further improve imports 5 years ago
Audric Ackermann 7c89b291de
Merge pull request #1205 from Bilb/handle-message-sending-events 5 years ago
Maxim Shishmarev b31b6bb912 Lint 5 years ago
Maxim Shishmarev 255c7ada68 More clean up in message_receiver.js 5 years ago
Maxim Shishmarev 6fcc1f7ae4 Merge branch 'clearnet' into refactor-polling 5 years ago
Audric Ackermann 0474e84b19
fix profileKey sharing and avatar 5 years ago
Maxim Shishmarev 468ad9f71d Add more type annotations 5 years ago
Vincent d1a77b82ee rm tmp file 5 years ago
Vincent 7498a255a2 utils compatiblity merger 5 years ago
Audric Ackermann c95bf57b28
Merge remote-tracking branch 'upstream/clearnet' into handle-message-sending-events 5 years ago
Maxim Shishmarev 6295e4206d Clean up imports 5 years ago
Mikunj 7b355dae78 Fix grunt 5 years ago
Maxim Shishmarev 0904e7a8ca Refactor from message polling to content message handling 5 years ago
Mikunj 4a3188bbf9 minor fixes 5 years ago
Mikunj d4dc8aa2ed remove SyncMessageUtils.from 5 years ago
Mikunj a972c328c7 Change how sync messages are handled 5 years ago
Mikunj 347a1e5582 Add avatar uploading to attachment utils 5 years ago
Audric Ackermann c419ff9cd2
include display name in outgoing messages 5 years ago
Mikunj c589f4a4af Finish hooking up attachments 5 years ago
Mikunj fbbbadada5 Merge branch 'clearnet' into attachments 5 years ago
Vincent fadbb37022 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into utils-tests 5 years ago
Audric Ackermann 5f2990d088
Merge pull request #1197 from Bilb/other-messages-new-sending 5 years ago
Vincent 2d0409f9c8 Merge branch 'gorup-tests' into utils-tests 5 years ago
Vincent e2e867d5c1 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into utils-tests 5 years ago
Vincent a6433fe5dd merge 5 years ago
Mikunj 13811233b6 Add session request expiry checks 5 years ago
Audric Ackermann 9941c12586
finish adding mediumGroupUpdates 5 years ago
Vincent c3af41cb80 merge 5 years ago
Vincent f4fdd42ef3 string-tests 5 years ago
Mikunj 366ccdf97d Add more functions 5 years ago
Mikunj b69ad7db16 Add attachment util 5 years ago
Audric Ackermann 39bad87a18
updateMediumGroup replaced with new pipeline 5 years ago
Audric Ackermann a43abfd436
move groupContextType to sub classes of Closedgroup 5 years ago
Vincent 32015eeab6 ptests 5 years ago
Audric Ackermann cae608fd01
drop typing message for public groups and fix opengroup sending 5 years ago
Audric Ackermann b07b195102
Merge remote-tracking branch 'upstream/clearnet' into other-messages-new-sending 5 years ago
Audric Ackermann 3b40837ffc
address Pr review 5 years ago
Audric Ackermann cd79b5051c
move more logic to build sync message in ts for ContactSync and GroupSync 5 years ago
Mikunj fb53f9ff36 Fix message queue 5 years ago
Audric Ackermann fea75de3fe
make the sessionEstablishedMessage nullMessage have some random content 5 years ago
Audric Ackermann d114b6c130
add verifierSyncMesage and syncReadMessages 5 years ago
Audric Ackermann 655cc0575e
add sync of closed groups/open groups/ contacts with new pipeline 5 years ago
Audric Ackermann aee7428282
remove non used function in session from sendMessage.js 5 years ago
Mikunj Varsani 006b5760c6
Merge pull request #1192 from Mikunj/send-to-group
Handle typing and expiration messages when sending to group
5 years ago
Mikunj b52544e6ba Fix imports 5 years ago
Mikunj 212b002c62 Fix typo 5 years ago
Mikunj c2c56bb9b0 Handle typing and expiration messages when sending to group 5 years ago
Mikunj d4ea483aa0 Filter invalid authorisations from the file server 5 years ago
vincent 152adbf4d5 syncMessage done 5 years ago
Audric Ackermann 6a13839d9d
address reviews 5 years ago
Audric Ackermann 9baefb573e
fix tests 5 years ago
Audric Ackermann 0668798b72
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending 5 years ago
Audric Ackermann aa797f6670
various changes to be reverted. kind of working session chats only. 5 years ago
Mikunj 53727b7e59 Update ClosedGroupChatMessage 5 years ago
Vincent f72423c2ba types-etc 5 years ago
Audric Ackermann cf7635428a
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending 5 years ago
Mikunj 4d0d2727bd Added strict type checking to group id 5 years ago
Audric Ackermann 77025d1afd
adress review 5 years ago
Audric Ackermann bd940a9f79
add groupUpdate message and groupInfo to new pipeline 5 years ago
Audric Ackermann b0ed0207e0
fix one to one (session) chats with just the body set 5 years ago
Audric Ackermann 6380f7426f
fix pairing devices bugs since move to new pipeline 5 years ago
Vincent aa6ce0787b with-electron? 5 years ago
Mikunj 8f492f8e74 Review changes 5 years ago
Vincent 65148300e7 from-to-toSyncMessage 5 years ago
Vincent 58ab611c9e pulled 5 years ago
Mikunj 3bf5796cd5 Modify periodic check implementation 5 years ago
Audric Ackermann e0979fc4a5
add RequestContactSyncMessage and RequestGroup and RequestConfiguration messages to new pipeline 5 years ago
Mikunj d862269f8d Update tests 5 years ago
Audric Ackermann 9c1f0e76fd
add RequestContactSyncMesage 5 years ago
Audric Ackermann 6e1258e3d1
expirationTimerUpdate uses new sending pipeline 5 years ago
Audric Ackermann ff7ca5a0d5
add leave of closed group to new sending pipeline 5 years ago
Audric Ackermann 34cec0be34
RequestGroupInfo via new pipeline 5 years ago
Audric Ackermann 439ea09027
lint 5 years ago
Audric Ackermann e43dc734de
TypingMessage sent with new sending pipeline 5 years ago
Audric Ackermann 4867a560d0
trigger send for all devices of a closed group message 5 years ago
Audric Ackermann 9ec0c8e6a8
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending 5 years ago
Mikunj ef76972ccb Allow passing a cache to the queue 5 years ago
Audric Ackermann 12bb6673ea
fix session requests 5 years ago
Audric Ackermann 0a2af13cb1
start of fix of session-request processing 5 years ago
Audric Ackermann ae67f424a3
move instance of MessageQueue export to ts/session folder 5 years ago
Audric Ackermann c947d99369
getMessageQueue() rather than .messageQueue to avoid startup issue 5 years ago
Audric Ackermann d946678d59
fix encryption type for rawMessage 5 years ago
Vince fe7aaa0aaa
Merge pull request #1177 from vincentbavitz/message-queue-test
Message Queue Tests
5 years ago
Vincent 40368793fd rm-redundant-files 5 years ago
Vincent 99674ed2ba Fixup PubKey.isEqual 5 years ago
Vincent 20b2ba1c8a generateMemberList-compactify 5 years ago
Vincent 18af13d7d9 merge-fixups 5 years ago
Audric Ackermann 457a94790c
fix await of promises in if statements 5 years ago
Mikunj 3f93b25ac2 Added string utils 5 years ago
Vincent 42a788c8e3 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into message-queue-test 5 years ago
Mikunj 57b5effaf2 Replace long 5 years ago
Mikunj ae2b8334e0 Replace bytebuffer component 5 years ago
Vincent 2c2ed1b274 review-fixes 5 years ago
Audric Ackermann 2e78f755b4
replace sending of established, grant and link request messages 5 years ago
Vincent 211d4e1551 improve sendToGroup 5 years ago
Mikunj 4747c5f0db Merge branch 'clearnet' into multi-device-protocol-test 5 years ago
Mikunj 0933cf8b02 Added multi device protocol tests 5 years ago
Audric Ackermann 4865b72e93
Merge remote-tracking branch 'upstream/clearnet' into receiver-remove-friend-request-logic 5 years ago
Vincent 33488a9520 final 5 years ago
Audric Ackermann 28fb1dd12a
address PR reviews 5 years ago
Mikunj 30bc4c6cbc Simplify 5 years ago
Mikunj f681fd619d Added small helper functions 5 years ago
Audric Ackermann 4d2b08f4a2
remove getSessionRequest 5 years ago
Vincent 94f0fbb65a params-check 5 years ago
Vincent ac2bb65c2a isEqual on ChatMessages 5 years ago
Mikunj a83ce4ee16 Review fixes 5 years ago
Audric Ackermann 10e095ba9d
Merge remote-tracking branch 'upstream/clearnet' into receiver-remove-friend-request-logic 5 years ago
Mikunj 57ea59e5b7 Minor fixes 5 years ago
Mikunj c027490d2f Merge fixes 5 years ago
Mikunj 27f4378de8 Merge branch 'clearnet' into multi-device-protocol 5 years ago
Vincent fde52e7b7f splitting 5 years ago
Mikunj 93c19395c1 Change back to old window syntax and allow stubbing of it 5 years ago
Vincent dbc44cb78b Merge branch 'open-group-class' into message-queue-test 5 years ago
Vincent 131123e751 rm opengrouprefs 5 years ago
Vincent e9cc824b0b open groups 5 years ago
Vincent 6afddf38df finalise 5 years ago
Vincent 73d44d60cf mostly-tests 5 years ago
Audric Ackermann 66de8d9648
remove plenty of the friend logic 5 years ago
Mikunj ae44f0da0f Remove old multi device functions 5 years ago
Mikunj 0275d43fa4 Merge branch 'clearnet' into multi-device-protocol 5 years ago
Vincent 14ca56581c Merge branch 'message-sending-refactor-queue' into message-queue-test 5 years ago
Mikunj 7942ba086f Fetch device mappings from server when needed 5 years ago
Vincent 8417e3660d fixup-review 5 years ago
Vincent fc45f1c438 Merge branch 'message-sending-refactor-queue' into message-queue-test 5 years ago
Vincent 0f2d24fa11 fixup-review 5 years ago
Vincent 2be1c2fd94 groups-test 5 years ago
Mikunj 7a6ea97efb Handle strings in MultiDeviceProtocol 5 years ago
Vincent 35665f3cb6 is-medium-group 5 years ago
Vincent bffb43dd19 review-fixes 5 years ago
Mikunj b36b3e7725 Slowly replace old multi device functions 5 years ago
Vincent d0c9f8b773 review-fixes 5 years ago
Mikunj c8414fdce6 Simplify sql and data files 5 years ago
Vincent 48e3ded9d2 review changes 5 years ago
Vincent affba056d2 just-cache 5 years ago
Vincent e09372eacf tightening up queue 5 years ago
Audric Ackermann 38f64cf172
Merge pull request #1172 from Bilb/message-sending-refactor 5 years ago
Audric Ackermann 492cc96ad2
updateSessionTimestamp: return false if no write to DB needed 5 years ago
Vincent 00122333ff opengroupmessage 5 years ago
Vincent 6c35f3c773 optimized OpenGroup 5 years ago
Vincent a76a0bed00 sync proto 5 years ago
Vincent 3140dee2b2 queue-utils 5 years ago
Vincent 0d45ed4d68 OpenGroup class and sending to Groups 5 years ago
Vincent 83f70f1ff0 OpenGroup class and sending to Groups 5 years ago
Vincent 8d0829e8e4 pulled 5 years ago
Mikunj Varsani 542615961c
Merge pull request #1170 from Mikunj/message-sender-retry
Message sender retry
5 years ago
Mikunj 1c84fa6c02 Renamed retries to attempts 5 years ago
Mikunj Varsani 88f87c0a70
Update ts/session/sending/MessageSender.ts
Co-authored-by: Audric Ackermann <audric.bilb@gmail.com>
5 years ago
Mikunj 3b8b9f7306 Added comments 5 years ago
Mikunj 090f0e2c38 Add retrying and tests 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
Mikunj 653efaf9cf Fixed libsignal-protocol declaration 5 years ago
Audric Ackermann da1edab63d
Merge remote-tracking branch 'upstream/clearnet' into message-sending-refactor 5 years ago
Mikunj Varsani 9b93e247eb
Merge pull request #1167 from Mikunj/message-sender-test
Added Message Sender tests
5 years ago
Vincent 2095c63a57 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into message-sending-rafactor__cache 5 years ago
Audric Ackermann 73c4020daf
throw error on sendSessionRequest and log it in sendSessionRequestIfNeeded 5 years ago
Vincent eb116e587e simplified conversion to buffer 5 years ago
Vincent fb903daf20 sync msgs 5 years ago
Mikunj 9b855a11e1 Added MessageSender tests 5 years ago
Audric Ackermann b9aa0ad8d5
Merge remote-tracking branch 'upstream/clearnet' into message-sending-refactor 5 years ago
Audric Ackermann 886f279540
hide errors of sendSessionRequest message.send() 5 years ago
Audric Ackermann dc00923f17
add SessionProtocol test 5 years ago
Vincent f0ba4fa276 partial raw messages 5 years ago
Vincent 86cbc07855 linted 5 years ago
Vincent 80bc3520bd queue 5 years ago
Mikunj e9983099a9 Fix tests 5 years ago
Vincent ef65e47819 Merge branch 'message-sender' of https://github.com/Mikunj/session-desktop into message-sending-rafactor__queue 5 years ago
Vincent 392c201a13 linted 5 years ago
Vincent 5f38e216a5 merge w cache 5 years ago
Vincent 728b43be9e cache-pull-from-db-finish 5 years ago
Vincent d0005205a4 queue-st 5 years ago
Vincent a2844b48f4 linted 5 years ago
Vincent d9bb7451a3 linted 5 years ago
Vincent b203dc4493 Finalized cache 5 years ago
Mikunj 1dad49057b Implement MessageSender 5 years ago
Mikunj cbc32b9989 Disable no-unused-variable for session related ts files. 5 years ago
Mikunj d1bfcd340b Fix imports.
Fix closed group messages.
5 years ago
Vincent afcbf7049e linted 5 years ago
Vincent bbfa6499e0 Stubbed cache 5 years ago
Vincent fb4c6fb387 testing stubs 5 years ago
Audric Ackermann 15f71cb9c8
move sessionprotocol to a full static class 5 years ago
Vincent 734debe841 PendingMessageCache Done 5 years ago
Audric Ackermann a92f4ab8da
address reviews 5 years ago
Audric Ackermann 1c570e1c2f
Merge branch 'message-sending-refactor' of github.com:loki-project/loki-messenger into message-sending-refactor 5 years ago
Vincent 193573aa67 getFromStorage complete 5 years ago
Vincent b8ec9bd995 Typify PubKey 5 years ago
Vincent 372754e360 Pulled from audric 5 years ago
Vincent a9d9303449 Prep for pull 5 years ago
Vincent a5cfbd584b linted 5 years ago
Vincent dec7aa10c8 Revert pulls 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
Audric Ackermann 935ac8d8f9
lint 5 years ago
Audric Ackermann 1dec669d11
make sessionProtoco read and write to db 5 years ago
Audric Ackermann a7572470df
fix some ts errors on sending files 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 b644e2a05f Added more types.
Finalise MessageEncrypter.
5 years ago
Mikunj 36762dbbf2 Added libsignal-protocol typings.
Added MessageEncrypter.
5 years ago
Audric Ackermann 6faa764419
lint 5 years ago
Audric Ackermann ee6ee7ec4f
Merge remote-tracking branch 'upstream/message-sending-refactor' into audric/refactor-message-sending 5 years ago
Audric Ackermann 9fd929e812
lint 5 years ago
Audric Ackermann 3840d061c3
add test for closed group chat 5 years ago
Audric Ackermann 934838cc1c
add tests for opengroup message 5 years ago
Audric Ackermann 1f2f0535a1
prekeybundle fields are not optional 5 years ago
Audric Ackermann 73dbcd890b
add test for ChatMessage 5 years ago
Audric Ackermann 5cec07ef16
add ChatMessage with quotes and attachments 5 years ago
Mikunj 0f6053ce08 Add events to MessageQueueInterface.
Added strict typings for events.
5 years ago
Audric Ackermann 6860875477
remove setIdentifier and make identifier optional in constructor 5 years ago
Audric Ackermann da8999263b
make identifier a uuid 5 years ago
Audric Ackermann 2acba52933
use undefined or ? rather than null 5 years ago
Audric Ackermann cb74c9fe1d
use extends to extends typescript constructor parameters 5 years ago
Audric Ackermann 7191038f21
add SessioNEstablishedMessage and tests 5 years ago
Audric Ackermann 46a48406c7
add EndSession and SessionReset messages & tests 5 years ago
Audric Ackermann 601d978883
make OutgoingMessage interface an abstract class and add setIdentifier 5 years ago
Audric Ackermann 798efd8e00
use export* syntax to clean ts index.ts 5 years ago
Audric Ackermann 9ea95e59fa
add GroupInvitationMessage and tests 5 years ago
Audric Ackermann 56d744fda9
add TypingMessage and tests 5 years ago
Audric Ackermann 956491ec82
session established message with ttl of 5 minutes 5 years ago
Audric Ackermann fa26ff9e32
pass args by {} and add deviceLink tests 5 years ago
Audric Ackermann f1244f3031
add device unlink and receiptMessage class and tests 5 years ago
Audric Ackermann 81cb1122f8
remove window.getMessageTTL 5 years ago
Mikunj 3dfc1ca213 Improved JobQueue.
Added tests.
5 years ago
Audric Ackermann e45ef6f291
add test for unpairing request message 5 years ago
Audric Ackermann 443f177daa
ContentMessage remove auto padding 5 years ago
Mikunj e7826cfb34 linting 5 years ago
Mikunj e0f27ba712 basic classes for message sending 5 years ago
Audric Ackermann 892b2f8474
add ttl as abstract method so each message can define its own 5 years ago
Audric Ackermann f4a24c5c98
add empty messages ts files 5 years ago
Mikunj 15560a4cb5 Linting and comments 5 years ago
Mikunj 46b3032a05 Remove MessageCategory.
We don't need this as we can infer the encryption type from the message.
5 years ago
Mikunj 9bd08ba930 Initial barebone commit for messages refactor 5 years ago