Commit Graph

281 Commits (3aa9ca785f230720ffc3ee90e6a0fa8fdf72e62d)

Author SHA1 Message Date
Audric Ackermann cfb9e65f30
trigger new ratchet send on message sent success
send our new ratchet to all new members when we just sent a message
containing no senderKey in it.

an set but empty senderKey array should only be sent when a user left or
was removed.
5 years ago
Audric Ackermann a05b6556b0
remove unused handleQuit for medium groups 5 years ago
Audric Ackermann e0e0830d3b
remove all ratchet when needed to get fresh senderKey from members 5 years ago
Audric Ackermann 5d7d66f65a
fix bug making session request being sent for medium group create 5 years ago
Audric Ackermann a80f9a5965
fix medium group to match mobile way 5 years ago
Audric Ackermann 06d0683ce5
WIP 5 years ago
Audric Ackermann 22afe50c05
make messageQueue handle medium group message in sendToGroup 5 years ago
Audric Ackermann d4e9b43f0c
remove QUIT type of mediumgroupupdate 5 years ago
Audric Ackermann 82be1ca60f
allow medium group updates from non admin 5 years ago
Audric Ackermann c01cd634e4
Generate our own senderkey if it does not exist
This case can happen on restore from seed
5 years ago
Audric Ackermann e5db9916a5
allow closed group updates from non-admin user 5 years ago
Audric Ackermann 4505bed61b
add migration to drop existing textsecure prefix from group convo ids 5 years ago
Audric Ackermann 86b15328c1
drop the prefix for group on the incoming message object 5 years ago
Audric Ackermann 8326870b1a
use senderIdentity for incoming messages on mediumGroups 5 years ago
Audric Ackermann 514eb9ba98
fix pubkey regex for mobile medium groups 5 years ago
Audric Ackermann 215c964fab
fix padding for medium group 5 years ago
Audric Ackermann 8123508b51
fix avatar closed group and pubkey for medium mobile groups 5 years ago
Audric Ackermann 1545256cbe
Merge pull request #1337 from Bilb/fix-ssk 5 years ago
Audric Ackermann 56a81ccc93
Merge pull request #1336 from Bilb/remove-jazzicon 5 years ago
Audric Ackermann 04063cd0fb
make medium group pubkey be in bytes rather than str 5 years ago
Audric Ackermann 7054268b14
use source from decoded content and not envelope on ssk 5 years ago
Audric Ackermann 9576944191
fix download of attachments on open group 5 years ago
Audric Ackermann 1da4ae69c2
render NoteToSelf list item as a normal conversation 5 years ago
Audric Ackermann c34edee180
Merge pull request #1321 from Bilb/use-created-at-server-timestamp
Fixes #1249
5 years ago
Audric Ackermann a0e437ab87
fix ordering of our own message on message pulled from server 5 years ago
Audric Ackermann 7501d71542
fix polling logic on network errors #995 5 years ago
Audric Ackermann 76664d9a11
use created_at for public group to order messages 5 years ago
Audric Ackermann adfaa8861f
fix build 5 years ago
Audric Ackermann cd686269cb
use server created_at timestamp to order messages
Also update the way we check for duplicated message to allow a 10s
window with the same body rather than an exact match of timestamp.

This is needed as the timestamp of the message pulled is now the one of
the creation of the server, and not the same we have locally (sent at).
5 years ago
Audric Ackermann dafe8a80ab
shortcut newReceiver when calling dataMessage exported functions 5 years ago
Mikunj 22c64395d9 Remove multi-device warnings 5 years ago
Mikunj c0fca99485 Disable multi device 5 years ago
Audric Ackermann 89579ebd35
refactor SessionPasswordModal to handle errors on length 5 years ago
Audric Ackermann 582499be25
do not drop group control message from blocked user 5 years ago
Maxim Shishmarev d95dfdc04a
Merge pull request #1280 from msgmaxim/medium-group-fixes
Medium group protocol changes
5 years ago
Audric Ackermann 5f47c42038
when pulling public message, use the MultiDeviceProtocol to check
if this message is coming from us rather than checking the cached values
5 years ago
Maxim Shishmarev db05592400 Address review comments 5 years ago
Audric Ackermann cd516aab64
lint 5 years ago
Audric Ackermann 3e23039adb
do not sync blocked closed group as mobile is not ready yet 5 years ago
Maxim Shishmarev cc43555cd2 Merge branch 'clearnet' into medium-group-fixes 5 years ago
Audric Ackermann d2a4757061
trigger and handle blocked contacts/groups as a list on block/unblock 5 years ago
Maxim Shishmarev 87144336b7 Large refactor of medium groups. Fixes them for multidevice 5 years ago
Audric Ackermann ae6db8640a
Merge pull request #1273 from Bilb/fix-showing-secondary-conversation-sync 5 years ago
Audric Ackermann dd3080d9fe
mark conversation as secondary on message synced when needed 5 years ago
Audric Ackermann a17edd0ce9
enable back delivery Receipt and read receipt message 5 years ago
Audric Ackermann b04a64da8c
mark secondary devices as secondary from the right primary key 5 years ago
Audric Ackermann 9a5c73af3c
do not update loki display name is given string is '' onContactSync 5 years ago
Audric Ackermann ba7241b2cb
contactSync: mark conversation as secondary when they are 5 years ago
Audric Ackermann 3775a9ef05
drop empty synced message (or autoFR) 5 years ago
Audric Ackermann 9df0a79fb9
remove blockedNumber.js 5 years ago
Audric Ackermann e6e179b45b
Merge branch 'clearnet' into drop-auto-fr-messages 5 years ago
Audric Ackermann 0c8e34a78e
remove envelope from cache if sentMessage is empty 5 years ago
Audric Ackermann 17cae3937d
drop synced message with the autoFR content 5 years ago
Audric Ackermann 598d6d1010
drop auto fr messages 'Please Accept... ' 5 years ago
Audric Ackermann 45cdbcbb2f
handle sync of blocked contact/groups as sync events 5 years ago
Audric Ackermann 66697bc235
remove unused addBlockedGroup function since we moved to controller
for blocked group
5 years ago
Maxim Shishmarev 237bd84b35 Fix medium group sending for single device users; protocol changes 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
Audric Ackermann d92bf6febf
Merge pull request #1229 from Bilb/fix-open-groups-ui
* fix sync of closed groups
* fix showing of contacts and closed groups after sync
* create closed group: only show direct conversations 
* handle message sending events for open groups
5 years ago
Audric Ackermann f03d66de38
use active_at to show and sync real contacts from contact list 5 years ago
Mikunj f48e10fccd Fix profile keys not being decoded properly 5 years ago
Audric Ackermann 880e039652
handle grantSignature undefined 5 years ago
Audric Ackermann d8df91fa15
use the groupId as conversation id to create a conversation when this is a group 5 years ago
Audric Ackermann 3fa54c3ef9
Merge pull request #1226 from Bilb/various-closed-group-fixes 5 years ago
Audric Ackermann db1a133c25
drop an expiretimer message with the same timer already on use 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
Audric Ackermann 696fbd8d7a
address review 5 years ago
Maxim Shishmarev a2b80a5e68 Address review comments 5 years ago
Audric Ackermann bd67040086
handle empty group id after decoding and set it to null 5 years ago
Maxim Shishmarev ae35626b35
Merge pull request #1221 from msgmaxim/ts-onion-requests
Move onion requests to typescript
5 years ago
Mikunj Varsani f11e0f2cd0
Merge pull request #1222 from Mikunj/blocking
Fix up Blocking
5 years ago
Maxim Shishmarev ccc487528d Fix edkey extraction 5 years ago
Mikunj f008a8b3ef Always block the primary device instead of all devices.
Added isBlockedAsync function.
5 years ago
Mikunj 2a1afa9fe7 Forgot checking for our own devices 5 years ago
Mikunj 3159baebfa Fix case where blocked user adds a new linked device. 5 years ago
Audric Ackermann 0366f29473
fix expiretimer on closed groups message showing on session conversation 5 years ago
Audric Ackermann a02aa75f1f
Merge remote-tracking branch 'upstream/clearnet' into various-closed-group-fixes 5 years ago
Audric Ackermann bfd19af04d
use MultiDeviceProtocol.isOurDevice when possible 5 years ago
Audric Ackermann 15b8600e25
fix display name and avatar not being updated when message from secondary 5 years ago
Mikunj aa75205bbd Move BlockedNumberController to ts 5 years ago
Audric Ackermann 235ab0bfb3
create convo for both primary and secondary in receivemessage 5 years ago
Audric Ackermann 2257420523
ignore other empty buffers which should be null after protobuf decode 5 years ago
Mikunj Varsani 26e3eca1a2
Merge pull request #1215 from Mikunj/session-restoration
Automatically restore session on no record error
5 years ago
Mikunj 8f82e7a442 Fix multi device pairing 5 years ago
Mikunj f33897abe2 Automatically restore session on no record error 5 years ago
Mikunj 2d5230715f Merge branch 'clearnet' into closed-group-fixes 5 years ago
Mikunj c422c9e2ad Lint 5 years ago
Mikunj 269c87a42e Fix closed group issues 5 years ago
Mikunj 8d11660b13 Fix attachments 5 years ago
Maxim Shishmarev 7e737a3ccd Merge branch 'clearnet' into refactor-polling 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 bbebfa4c7e
remove fixed comments 5 years ago
Audric Ackermann f3ae798b12
remove SESSION_REQUEST flag from DataMessage. now in envelope 5 years ago
Maxim Shishmarev 468ad9f71d Add more type annotations 5 years ago
Mikunj 23b05107fb Fix closed group infinite request loop 5 years ago
Maxim Shishmarev e2b5b6654b Clean up more imports 5 years ago
Maxim Shishmarev 6295e4206d Clean up imports 5 years ago
Maxim Shishmarev 0904e7a8ca Refactor from message polling to content message handling 5 years ago
Mikunj 225d7f84e4 Fix declaration file names 5 years ago
Audric Ackermann 1b011ca74e
fix groupUpdate including an empty kicked field 5 years ago
Audric Ackermann 39bad87a18
updateMediumGroup replaced with new pipeline 5 years ago
Audric Ackermann 6a13839d9d
address reviews 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
Audric Ackermann cf7635428a
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending 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 029851400d
include endSession message with new pipeline 5 years ago
Mikunj b85348569b Merge branch 'clearnet' into folder-restructure 5 years ago
Audric Ackermann 908316f00d
update ReadReceiptMessage and DeliveryReceiptMessage to new pipeline 5 years ago
Maxim Shishmarev 7fe6583608 Fix incorrect conversation id for incoming open group messages 5 years ago
Audric Ackermann fbba5575ba
remove buildSessionRequest message 5 years ago
Audric Ackermann 6e1258e3d1
expirationTimerUpdate uses new sending pipeline 5 years ago
Audric Ackermann 34cec0be34
RequestGroupInfo via new pipeline 5 years ago
Vincent 99674ed2ba Fixup PubKey.isEqual 5 years ago
Audric Ackermann 4865b72e93
Merge remote-tracking branch 'upstream/clearnet' into receiver-remove-friend-request-logic 5 years ago
Audric Ackermann fc7daadd41
updte profile of primary conversation when updating the secondary conversation 5 years ago
Audric Ackermann 417634086a
ignore public group on preprocessGroupMessage 5 years ago
Audric Ackermann 28fb1dd12a
address PR reviews 5 years ago
Mikunj c027490d2f Merge fixes 5 years ago
Audric Ackermann eb9a838af1
remove friends from UI logic 5 years ago
Audric Ackermann bccdc3cf34
Merge remote-tracking branch 'upstream/clearnet' into receiver-remove-friend-request-logic 5 years ago
Mikunj ae44f0da0f Remove old multi device functions 5 years ago
Mikunj 7b7d8c0e2a Remove multi device from libloki 5 years ago
Maxim Shishmarev b98543a9fc Fix enum in a definition type 5 years ago
Maxim Shishmarev eb280ec1e4 Move model definition files 5 years ago
Maxim Shishmarev 8ca7b8cfb4 Message receiving refactor: handleDataMessage onwards 5 years ago