Commit Graph

50 Commits (c3f20aceb2dba8ca8e7eacec943c57902db10ccf)

Author SHA1 Message Date
Audric Ackermann fa32e61982
network delete_all force retries if we get a 421 4 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 c92baad736
Fix path building (#1903)
* Keep line breaks when message has some new lines

Relates #1758 and #1898 and #1901

* fix link preview cropped when received

* make sure we fetch from seed if we end up with not enough snodes

* try to download recent previews if we just trusted a user

* throw if we need to rebuild path while fetching snode list from snode

* fixup no refecthing of snode list while we are fetching them already

* added test for fetch from db or seed

* fetch snode list from snode every hour

also make sure the path building does not try to get more snodes. It
just throws

* do not drop a path if an opengroup room is down and we get errors  back

* do not throw an error if the snode in error in not in any path

* fix tests

* bump to v1.7.11
4 years ago
audric ec2eab6e23 do not trigger redux update if onion path did not change 4 years ago
audric 6a50484597 fix tests for swarm polling 4 years ago
audric e5dab2781e remove spectron dependency 4 years ago
audric 8344c48d88 handle offline status for selectGuardNodes stuff 4 years ago
audric cc4168a858 do not update last fetch timestamp when an exception for retrieve 4 years ago
audric 2ebae9a746 fix tests for variable swarm polling 4 years ago
audric 9991dc2364 move delete account logic to it's own dialog 4 years ago
audric bea704ecf0 bump react to 17 4 years ago
Audric Ackermann 399041c5b3
cache identity pair and add some per measure 4 years ago
Audric Ackermann e85f69a144
use our retrieve status as isOnline status 4 years ago
Audric Ackermann 13bc1a21d9
add test for swarmPolling variable rate 4 years ago
Audric Ackermann 7ea30b70ca
variable swarm polling based on activeAt timestamp 4 years ago
Audric Ackermann e090b8e8c6
remove getInstance on swarmPolling 4 years ago
Audric Ackermann 89a0868fc3
remove getInstance of conversationController to get() 4 years ago
Audric Ackermann 0a208c0d15
store snodes list on db, use them if possible on app start
if not enough snodes or no snodes at all, a request to the seed node is
made instead
4 years ago
Audric Ackermann 5cab7908b4
add some test for partial path rebuilding 4 years ago
Audric Ackermann c599d0b629
WIP 4 years ago
Audric Ackermann a83a2afa4f
scoring system kind of working 4 years ago
Audric Ackermann c63d5a4581
rename serviceNodeApi to SNodeApi 4 years ago
Audric Ackermann 58abd08e6d
Get snode from snode (#1614)
* force deleteAccount after 10sec timeout waiting for configMessage

* move some constants to file where they are used

* add a way to fetch snodes from snodes

* remove a snode from a pubkey's swarm if we get 421 without valid content

* remove getVersion from snodes

* hide groupMembers in right panel for non-group convo
4 years ago
Audric Ackermann 7ec663df71
move SwarmPolling from window to require singleton 4 years ago
Audric Ackermann ad26e50de1
fix attachment upload for opengroupv1 and old file server 4 years ago
Audric Ackermann 710c9fa269
fix http request over onion 4 years ago
Audric Ackermann 98b69c17f0
add userblocking opengroupv2 and quoting back of messages 4 years ago
Audric Ackermann 34148e67ec
add return of url after v2 attachment upload 4 years ago
Audric Ackermann f7581cf4eb
increase prettier maxWidth to 100 4 years ago
Audric Ackermann 53d16d7dac
remove fallback to node-fetch 4 years ago
Audric Ackermann 2ae259092f
fix propagation of WrongSwarmError in pollForAllKeys() 4 years ago
Audric Ackermann 8ea9f02cec Move data.js to data.ts 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 a51f95d28c
move models to TS part1 4 years ago
Audric Ackermann b88ea110e8
Add multi device v2 support 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 05e682cdc2
enable back swarm polling when we get added back to a group 5 years ago
Audric Ackermann 7501d71542
fix polling logic on network errors #995 5 years ago
Maxim Shishmarev 237bd84b35 Fix medium group sending for single device users; protocol changes 5 years ago
Maxim Shishmarev a2b80a5e68 Address review comments 5 years ago
Maxim Shishmarev 29fe64f5d5 Fix retrieving with pubkey object 5 years ago
Maxim Shishmarev 9cdb7710ec Stub out swarm polling 5 years ago
Maxim Shishmarev 114f6d083f Fix pubkey comparison 5 years ago
Maxim Shishmarev 7dd9469074 Further improve imports 5 years ago
Maxim Shishmarev b31b6bb912 Lint 5 years ago
Maxim Shishmarev 468ad9f71d Add more type annotations 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