Commit Graph

44 Commits (4eafe8c68cc29e0aa32cb4d0a5616cf638420e5e)

Author SHA1 Message Date
Audric Ackermann d43d6abbae chore: replace tslint with eslint and fix linting issues 2 years ago
Audric Ackermann 6d1b406c85 fix: add namespace to all sending message calls 2 years ago
Audric Ackermann d948045e6a
added hf switching of poll&store requests + tests 3 years ago
Warrick 1d459ba533
Unsend messages (only message hashes saving for now is enabled) (#1891)
* WIP unsending message.

* retrieving message with hash from db on receiving unsend request.

* outgoing messages hashes updated on message sent success

* unsend messaging

* unsend message - deleting messages and marking as isDeleted.

* add msg hash to unprocessed records.

* Message unsending working for closed groups provided the message has been updated with a hash from server.

* adding 2-stage confirmation modal for message deletion

* adding rendering of removed incoming messages, disabling rendering of unsent outgoing messages in coversation screen.

* Adding logging

* debugging.

* outgoing only saved for sync message instead of regular message.

* deleting locally

* adding post unsend deletioncode.

* starting adding feature flag.

* Added feature flag.

* addding mandatory messageHash  pollling pipeline methods swarm polling.

* Conversation list item message preview showing deletion placeholder text if deleted.

* add condition to drop unsend requests not send by message author

* refactoring deleteMessage. Saving response hash for closed group message sending

* running yarn ready

* removing logging.

* Adding PR fixes

* Minor changes and running yarn ready

* fix typo

* Moved feature flag to lokiFeatureFlags. Fixing linting errors


Co-authored-by: Audric Ackermann <audric@loki.network>
4 years ago
Audric Ackermann b45109985c
use timestamp offset in for messages storage requests (#1892)
* add using timestamp offset from network for sending part1

* remove MessageController as we now rely on the database

* fix tests for message sending overriding timestamp
4 years ago
audric 9e37985d03 enable no-unused local and imports and fix tslint 4 years ago
Audric Ackermann f7e163c142
add sending of message for opengroupv2` 4 years ago
Audric Ackermann f7581cf4eb
increase prettier maxWidth to 100 4 years ago
Audric Ackermann 79193ee7be
refactor to Visible and ControlMessage types 4 years ago
Audric Ackermann c55f204440
Merge branch 'clearnet' into restore-handle-configuration 4 years ago
Audric Ackermann 215cffdd75
address reviews 4 years ago
Audric Ackermann e0c2cf8e9a
Force configuration message on avatar or display name update 4 years ago
Audric Ackermann a61f5e6814
add contacts to ConfigurationMessage 4 years ago
Audric Ackermann 0a82bf98fa
Add displayName and avatar pointer to ConfigurationMessage 4 years ago
Audric Ackermann 8ea9f02cec Move data.js to data.ts 4 years ago
Audric Ackermann ebf9714e49
remove MessageQueueInterface 4 years ago
Audric Ackermann 2d7515cf0b
Merge branch 'clearnet' into move-models-to-ts-2 4 years ago
Audric Ackermann 375c5ba1a8 add the request and reply of an encryptionKeyPair if needed 4 years ago
Audric Ackermann 36fab86d30
Merge remote-tracking branch 'upstream/clearnet' into move-models-to-ts-2 4 years ago
Audric Ackermann b88ea110e8
Add multi device v2 support 4 years ago
Audric Ackermann 64737a89d7
add ConfigurationMessage 4 years ago
Audric Ackermann 6e11c6db2e
remove all reference to closed group update v2 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 f1d84177a0 fix expirationTimer updates closed group desktop to ios 4 years ago
Audric Ackermann eb9828a3b7 fix tests 4 years ago
Audric Ackermann 19f59ca41e
add some logs for message sending 4 years ago
Audric Ackermann d43ae09eb0
first working version of closed group v2 4 years ago
Audric Ackermann 2af4938ff2
fix SessionProtocol decrypt of messages with Android
also disable the old SessionRequest logic
4 years ago
Audric Ackermann f28dfe5a94 use fallbacks for message even if we have a session with the device 4 years ago
Audric Ackermann a80f9a5965
fix medium group to match mobile way 5 years ago
Maxim Shishmarev f6223ce5ab Use message queue for medium group chat messages 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 9ec0c8e6a8
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending 5 years ago
Audric Ackermann d946678d59
fix encryption type for rawMessage 5 years ago
Vincent dbc44cb78b Merge branch 'open-group-class' into message-queue-test 5 years ago
Vincent 2be1c2fd94 groups-test 5 years ago
Vincent 6c35f3c773 optimized OpenGroup 5 years ago
Vincent 83f70f1ff0 OpenGroup class and sending to Groups 5 years ago
Vincent fb903daf20 sync msgs 5 years ago
Vincent 80bc3520bd queue 5 years ago
Vincent b203dc4493 Finalized cache 5 years ago
Vincent afcbf7049e linted 5 years ago
Vincent b8ec9bd995 Typify PubKey 5 years ago