Commit graph

102 commits

Author SHA1 Message Date
Audric Ackermann 80523a9a3e
rename MessageQueue event to be more easily searchable
success -> sendSuccess
fail -> sendFail
2020-11-25 12:26:42 +11:00
Audric Ackermann a80f9a5965
fix medium group to match mobile way 2020-10-01 15:12:51 +10:00
Audric Ackermann 22afe50c05
make messageQueue handle medium group message in sendToGroup 2020-09-30 10:22:36 +10:00
Audric Ackermann 3a876c7322
add notify to PN server on message sent 2020-09-21 12:26:23 +10:00
Audric Ackermann 7054268b14
use source from decoded content and not envelope on ssk 2020-09-14 12:15:22 +10:00
Audric Ackermann 1e446b0a81
fix order for open groups message which are out of sync 2020-09-08 09:37:51 +10:00
Audric Ackermann 6d65c9cc0a
make sendMessage return -1 on fail rather than false 2020-07-31 11:37:59 +10:00
Audric Ackermann 44349079ab
fix delete of open group messages 2020-07-31 09:49:36 +10:00
Maxim Shishmarev 87144336b7 Large refactor of medium groups. Fixes them for multidevice 2020-07-22 17:41:21 +10:00
Vincent ca96992a44 Pukbeyified 2020-07-10 11:33:34 +10:00
Vincent 68f2a90f7c pubkeys-in-message-encryptor-init 2020-07-10 11:24:23 +10:00
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.
2020-07-10 10:00:21 +10:00
Audric Ackermann f8aa50546b
include verb and path on outgoing websocket message 2020-07-08 17:59:17 +10:00
Maxim Shishmarev 255c7ada68 More clean up in message_receiver.js 2020-07-02 12:32:13 +10:00
Mikunj a972c328c7 Change how sync messages are handled 2020-06-30 14:52:09 +10:00
Mikunj b69ad7db16 Add attachment util 2020-06-26 11:58:05 +10:00
Audric Ackermann cae608fd01
drop typing message for public groups and fix opengroup sending 2020-06-25 15:38:00 +10:00
Mikunj fb53f9ff36 Fix message queue 2020-06-25 12:13:53 +10:00
Mikunj b52544e6ba Fix imports 2020-06-24 14:28:32 +10:00
Mikunj c2c56bb9b0 Handle typing and expiration messages when sending to group 2020-06-24 13:05:12 +10:00
Audric Ackermann 0668798b72
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending 2020-06-23 14:08:39 +10:00
Audric Ackermann cf7635428a
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending 2020-06-23 11:55:08 +10:00
Mikunj 4d0d2727bd Added strict type checking to group id 2020-06-23 10:51:15 +10:00
Mikunj 8f492f8e74 Review changes 2020-06-22 09:10:57 +10:00
Mikunj 3bf5796cd5 Modify periodic check implementation 2020-06-19 22:14:25 +10:00
Mikunj d862269f8d Update tests 2020-06-19 16:21:27 +10:00
Audric Ackermann 439ea09027
lint 2020-06-19 11:42:40 +10:00
Audric Ackermann 4867a560d0
trigger send for all devices of a closed group message 2020-06-19 11:31:51 +10:00
Audric Ackermann 9ec0c8e6a8
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending 2020-06-19 10:09:54 +10:00
Mikunj ef76972ccb Allow passing a cache to the queue 2020-06-19 09:33:23 +10:00
Audric Ackermann 12bb6673ea
fix session requests 2020-06-19 09:19:36 +10:00
Audric Ackermann 0a2af13cb1
start of fix of session-request processing 2020-06-18 17:45:32 +10:00
Audric Ackermann ae67f424a3
move instance of MessageQueue export to ts/session folder 2020-06-18 15:04:48 +10:00
Audric Ackermann c947d99369
getMessageQueue() rather than .messageQueue to avoid startup issue 2020-06-18 14:23:29 +10:00
Audric Ackermann 457a94790c
fix await of promises in if statements 2020-06-18 12:28:31 +10:00
Vincent 42a788c8e3 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into message-queue-test 2020-06-18 11:21:52 +10:00
Vincent 2c2ed1b274 review-fixes 2020-06-18 10:27:59 +10:00
Audric Ackermann 2e78f755b4
replace sending of established, grant and link request messages 2020-06-18 08:55:28 +10:00
Vincent 211d4e1551 improve sendToGroup 2020-06-17 21:40:17 +10:00
Audric Ackermann 4865b72e93
Merge remote-tracking branch 'upstream/clearnet' into receiver-remove-friend-request-logic 2020-06-17 13:16:31 +10:00
Vincent ac2bb65c2a isEqual on ChatMessages 2020-06-16 16:53:10 +10:00
Audric Ackermann 10e095ba9d
Merge remote-tracking branch 'upstream/clearnet' into receiver-remove-friend-request-logic 2020-06-16 15:46:33 +10:00
Mikunj 27f4378de8 Merge branch 'clearnet' into multi-device-protocol 2020-06-16 13:02:01 +10:00
Vincent fde52e7b7f splitting 2020-06-16 12:17:32 +10:00
Mikunj 93c19395c1 Change back to old window syntax and allow stubbing of it 2020-06-16 11:14:58 +10:00
Vincent dbc44cb78b Merge branch 'open-group-class' into message-queue-test 2020-06-16 09:21:35 +10:00
Vincent 6afddf38df finalise 2020-06-16 08:41:18 +10:00
Vincent 73d44d60cf mostly-tests 2020-06-16 07:44:37 +10:00
Audric Ackermann 66de8d9648
remove plenty of the friend logic 2020-06-15 18:05:14 +10:00
Mikunj ae44f0da0f Remove old multi device functions 2020-06-15 14:38:06 +10:00