Commit graph

34 commits

Author SHA1 Message Date
Audric Ackermann ab946e69b1 fix: finish updating dependencies 2023-08-02 07:55:45 +02:00
Audric Ackermann d43d6abbae chore: replace tslint with eslint and fix linting issues 2023-07-26 11:26:46 +02:00
Audric Ackermann 6d1b406c85 fix: add namespace to all sending message calls 2023-01-17 12:44:02 +11:00
Audric Ackermann 242d51ca8d
Id blinding + onionv4 + new endpoints for sogs and fileserver (#2347)
* Added Onionv4 support to file server, sogs and pn server
* Added blinded message support
* Updated endpoints for sogs and file server to remove legacy ones
2022-08-08 09:50:48 +10:00
Audric Ackermann b76797d264
do not use a custom sandbox for testing
instead use the one from Sinon as it is exposed for a good reason
2022-04-19 11:45:39 +10:00
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>
2021-09-20 13:47:59 +10:00
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
2021-09-16 14:48:46 +10:00
audric 9e37985d03 enable no-unused local and imports and fix tslint 2021-08-12 14:48:18 +10:00
Audric Ackermann 32cb19125f
remove signalprotocoladress unused 2021-07-09 14:00:28 +10:00
Audric Ackermann 7f76ab274c
added a hook to fetch avatar of closed group members 2021-07-08 16:11:43 +10:00
Audric Ackermann 3456162402
Moved opengroupv1 test to opengroupv2 tests 2021-05-27 14:51:56 +10:00
Audric Ackermann f7581cf4eb
increase prettier maxWidth to 100 2021-04-22 18:03:58 +10:00
Audric Ackermann 79193ee7be
refactor to Visible and ControlMessage types 2021-03-19 10:43:47 +11:00
Audric Ackermann 4a794e90a0
signInWithRecovery = show full screen loader 2021-03-04 10:43:17 +11:00
Audric Ackermann 39f8ca293a
speedup tests 2021-03-04 09:55:44 +11:00
Audric Ackermann d5c4108ed6 fix tests 2021-02-22 13:29:33 +11:00
Audric Ackermann 25e03eba35 fix lint 2021-02-19 15:13:43 +11:00
Audric Ackermann 370158951a move events from MessageQueue to MessageSentHandler 2021-02-16 18:12:49 +11:00
Audric Ackermann 2d7515cf0b
Merge branch 'clearnet' into move-models-to-ts-2 2021-02-11 14:45:09 +11:00
Audric Ackermann a31c457c08
allow closedgroup new message to be sent to our other devices
also, do not drop it on the receiving side
2021-02-11 14:04:08 +11:00
Audric Ackermann 8eb1507fcf fix tests with should() 2021-02-10 09:30:56 +11:00
Audric Ackermann ed84760f0e
add a tslint rule to forbid use of async without await 2021-02-09 17:00:54 +11:00
Audric Ackermann a51f95d28c
move models to TS part1 2021-02-08 15:20:47 +11:00
Audric Ackermann 6e11c6db2e
remove all reference to closed group update v2 2021-01-28 12:06:51 +11:00
Audric Ackermann a0703bc2f9
remove primary and secondary device separate status 2021-01-21 17:49:13 +11:00
Audric Ackermann 135fc3b366
remove prekeys 2021-01-21 17:49:07 +11:00
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)
2021-01-18 10:58:34 +11:00
Audric Ackermann eb9828a3b7 fix tests 2021-01-14 10:44:15 +11:00
Audric Ackermann d43ae09eb0
first working version of closed group v2 2021-01-12 16:56:21 +11:00
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 e6f367a61e
fix messagequeue test 2020-09-08 10:49:59 +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 933eb73aa1
Merge remote-tracking branch 'upstream/clearnet' into fix-integration-tests 2020-08-03 11:48:00 +10:00
Audric Ackermann 80b0821781
move unit tests to sub folder 2020-08-03 11:45:19 +10:00
Renamed from ts/test/session/sending/MessageQueue_test.ts (Browse further)