Commit Graph

338 Commits (9204d2f5dd77ad33125839ca7604e0617bf10851)

Author SHA1 Message Date
Audric Ackermann bb3641b39a remove the forceSave option for unprocessed message too 4 years ago
Audric Ackermann 25e03eba35 fix lint 4 years ago
Audric Ackermann 3ee0ccfac8 remove the forceSave logic for a message, always insert or replace 4 years ago
Audric Ackermann d844c5141e remove unprocessed from store. Nothing was stored in the store
it was simply as passthrough to the Data file.
No we directly call the data file instead
4 years ago
Audric Ackermann a34720501c update avatar on convo only if DL+decrypt is OK 4 years ago
Audric Ackermann 720922cc71 be sure to leave a group when leaving from another device 4 years ago
Audric Ackermann 8ea9f02cec Move data.js to data.ts 4 years ago
Audric Ackermann 7b81c4213a
Merge clearnet 4 years ago
Audric Ackermann 0c1343cad5
add a way to share currently distributing keypair to added members 4 years ago
Audric Ackermann 78e7255cb8
send the keypair to added members if we are admin
and remove request encryption keypair handling
4 years ago
Audric Ackermann 2d7515cf0b
Merge branch 'clearnet' into move-models-to-ts-2 4 years ago
Audric Ackermann df3ca5d38a
add a sql function to check if a keypair is already saved in db 4 years ago
Audric Ackermann a31c457c08
allow closedgroup new message to be sent to our other devices
also, do not drop it on the receiving side
4 years ago
Audric Ackermann 01f834ae98
only handle the first ever configuration message incoming 4 years ago
Audric Ackermann 6d28f343c9
try to decrypt unprocessed message when we get a new encryptionkeypair 4 years ago
Audric Ackermann ad06b94708 do not drop a message which was not decrypted for a medium group
Instead, trigger a request to the group to get the encryption keypair.
We will try to process those messages on an app restart
4 years ago
Audric Ackermann 375c5ba1a8 add the request and reply of an encryptionKeyPair if needed 4 years ago
Audric Ackermann 850233bc9e review PR 4 years ago
Audric Ackermann ed84760f0e
add a tslint rule to forbid use of async without await 4 years ago
Audric Ackermann 36fab86d30
Merge remote-tracking branch 'upstream/clearnet' into move-models-to-ts-2 4 years ago
Audric Ackermann c7fa765b65
be sure to have a conversationId on handleMessageEvent() 4 years ago
Audric Ackermann df0b44db4c
Merge remote-tracking branch 'upstream/clearnet' into multi-device-v2 4 years ago
Audric Ackermann 5ec9722e00
autobind typescript class methods with autobind 4 years ago
Audric Ackermann b76ce0f2ff
update models to TS part2 4 years ago
Audric Ackermann 65ed81e980
enable explicit group updates on the sending side 4 years ago
Audric Ackermann ebd94ce15c
fix order of added new group in leftPane 4 years ago
Audric Ackermann 3b3378a2ee
finish explicit group updates 4 years ago
Audric Ackermann 3342c7fd26
lint 4 years ago
Audric Ackermann 1d85a6dc5f
trigger new message onError while handling a request 4 years ago
Audric Ackermann a51f95d28c
move models to TS part1 4 years ago
Audric Ackermann aede96b69b
enable explicit group updates on the sending side 4 years ago
Audric Ackermann b88ea110e8
Add multi device v2 support 4 years ago
Audric Ackermann 64737a89d7
add ConfigurationMessage 4 years ago
Audric Ackermann 2462e12a04
Merge pull request #1461 from Bilb/explicit-group-updates
Explicit group updates
4 years ago
Audric Ackermann c06f710b3b
fix order of added new group in leftPane 4 years ago
Audric Ackermann 334da0a169
finish explicit group updates 4 years ago
Audric Ackermann 82a7ed73df
trigger new message onError while handling a request 4 years ago
Audric Ackermann 46fdebe3d7
Merge pull request #1459 from Bilb/improve-open-group-loading-speed
Improve open group loading speed
4 years ago
Audric Ackermann 0e25ab2874
WIP 4 years ago
Audric Ackermann 6e11c6db2e
remove all reference to closed group update v2 4 years ago
Audric Ackermann 999e6fc712
replace GroupUpdateV2 in proto to ClosedGroupControlMessage 4 years ago
Audric Ackermann 79028ebaeb
remove isUnidentifiedDelivery 4 years ago
Audric Ackermann c5ad206239
fix message added not shwon on SessionMessageList 4 years ago
Audric Ackermann 8b8fe66615 update profile of users when getting profile from opengroup message 4 years ago
Audric Ackermann 34e5648681 fix metadatabadges for closed group
do not show crown nor Mod badge
4 years ago
Audric Ackermann b218611831 remove contactCollection in convos. 4 years ago
Audric Ackermann 273eedc6a9 remove hasSignalAccount and Sealed Sender unused 4 years ago
Audric Ackermann e3a6e24898 remove body pending loading of message > 2000.
Also remove the limit when sending text messages
4 years ago
Audric Ackermann eadfbc9f6d
Merge remote-tracking branch 'upstream/clearnet' into clean-and-moderator-dialog-update 4 years ago
Audric Ackermann bb037f7edb
fix profile updates when flag is set (do not drop message) 4 years ago
Audric Ackermann a0703bc2f9
remove primary and secondary device separate status 4 years ago
Audric Ackermann 135fc3b366
remove prekeys 4 years ago
Audric Ackermann fd18345c5a
remove handling of rss related things completely 4 years ago
Audric Ackermann 21c62c167e
remove typing indicator when we get a dataMessage 4 years ago
Audric Ackermann 72c96ea998
remove most of the SessionProtocol unused stuff
- prekeys
- SessionCipher
- LokiCipher
- endSession and the reset Session logic
- what we called Sessionprotocol manager (to keep track of session with
everyone)
4 years ago
Audric Ackermann 979a9058e3
remove verified number - related features (partial) 4 years ago
Audric Ackermann 75b7788fa9
remove stuff related to web api 4 years ago
Audric Ackermann f1d84177a0 fix expirationTimer updates closed group desktop to ios 4 years ago
Audric Ackermann 58be168227 drop groupUpdates which happened before we joined the group 4 years ago
Audric Ackermann 6856c0e748
remove updateTextInputState not needed and add left to menu tests 4 years ago
Audric Ackermann cbd0e63641
add admin dialog to warn him about leaving for v2 closed group 4 years ago
Audric Ackermann d43ae09eb0
first working version of closed group v2 4 years ago
Audric Ackermann 2fe6b11e89
move ConversationController to typescript 4 years ago
Audric Ackermann adf0d03d35
add test for the MessageEncrypter using Session protocol 4 years ago
Audric Ackermann 0a4cae4183
fix duplicates message for open groups 4 years ago
Audric Ackermann 2af4938ff2
fix SessionProtocol decrypt of messages with Android
also disable the old SessionRequest logic
4 years ago
Audric Ackermann b0a229bf13 add Dialog on app start to ask to update SessionID 4 years ago
Audric Ackermann 1045bfeba8 add SessionProtocol wip 4 years ago
Audric Ackermann 6b56f1174e search for duplicates using the sent_at timestamp to speedup db call 4 years ago
Audric Ackermann cd3ec67099 add the encryptWithSessionProtocol method 4 years ago
Audric Ackermann cf25e89a14 cleanup unused code 4 years ago
Audric Ackermann 4026e0162e fix a bug preventing fitlering of duplicates for open group messages 4 years ago
Audric Ackermann 228e4ed662
move MessageController to typescript 4 years ago
Audric Ackermann 184b1984c3
fix autoplay unmuted video when video attachment is added 4 years ago
Audric Ackermann 0addf2146a
add some logs to attachment download 4 years ago
Audric Ackermann 9f14924e65
push toast if gif size is too big 4 years ago
Audric Ackermann da62ba6829
Merge remote-tracking branch 'upstream/clearnet' into react-refactor 4 years ago
Audric Ackermann 97ff60f3bb
reset input for selecting file on file choosen on CompositionBox 4 years ago
Audric Ackermann 380d296bb2
send session request if we get a message we cannot decode
This handle the case where we delete a contact from A, lets call him B
All message after that delete from B to A will be not decoded correctly.

The issue is that the record is existing, but there is no session in it.
The fix is that if we get a message and a record is found, but has not
session in it, we trigger a session request with that user
4 years ago
Audric Ackermann b5af8eb215
Add Mentions with react-mentions 4 years ago
Audric Ackermann 531e7bab46
print error if we get a 178 attachment size.
This is a dirty hack until the root cause is fixed.
4 years ago
Audric Ackermann 221f264de6
rename all saveMessage to message.commit() 4 years ago
Audric Ackermann 209fe460e4
lint and fix toast blur when dialog shwon 4 years ago
Audric Ackermann 357421f161
rename window.console.log to window.log.info 4 years ago
Maxim Shishmarev 27859b13aa Added an option to use v3/lsrpc endpoint for more compact (base64) file reponses 4 years ago
Audric Ackermann e613613416
show toast with react-toastify and make them a styled-component 4 years ago
Audric Ackermann 6fd8ea20c7
fix restoring of session after restore from seed 5 years ago
Audric Ackermann dad9e5297c
make the last seen indicator work as expected 5 years ago
Audric Ackermann 940ad57f83
rework the way unread count works
we no longer refresh on each message read, only once the whole
conversation is read.
5 years ago
Audric Ackermann ef3f3d0af5
enable back link previews in sent message 5 years ago
Audric Ackermann 68e9376c5e
throw error on invalid response while downloading attachment 5 years ago
Audric Ackermann 17ac8c4343
Merge remote-tracking branch 'upstream/clearnet' into react-refactor 5 years ago
Maxim Shishmarev 5ecf43c124 Fix open group file uploads using incorrect server 5 years ago
Audric Ackermann 3998bbc97d
fix more typing errors of conversation object 5 years ago
Audric Ackermann c41eaada25
move display of message list to a subcomponent 5 years ago
Audric Ackermann 026a1930ed
add a getOrThrow to ConversationController when we expect this convo 5 years ago
Audric Ackermann 144ae41529
add type for ConversationController, remove showStartConversation
and cleanup scss
5 years ago
Audric Ackermann c7e54c4257
make attachment download use onion routing 5 years ago
Audric Ackermann b050a3740d
clean all updateConversation calls to convo.commit() 5 years ago
Audric Ackermann 1a5a0786a1
fix new medium group mark as unread then as read on opened 5 years ago
Audric Ackermann 7a8a22701b
Merge pull request #1370 from Bilb/fix-medium-groups 5 years ago
Audric Ackermann a1c58044d3
Merge pull request #1371 from Bilb/drop-admin-medium-groups
require admin for editing a closed group, but not a medium one
5 years ago
Audric Ackermann 2f8f79c5d2
make message clearer when we try to reuse a keyIdx in the ratchet 5 years ago
Audric Ackermann 99608440d0
Merge pull request #1358 from Bilb/generate-own-sender-key-not-found
Generate our own senderkey if it does not exist
5 years ago
Audric Ackermann 4215aa1e3b
require admin for editing a closed group, but not a medium one 5 years ago
Audric Ackermann 05e682cdc2
enable back swarm polling when we get added back to a group 5 years ago
Audric Ackermann 3fa1a8f2b5
mark medium group as not left if we get a message INFO adding us back 5 years ago
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