Commit graph

496 commits

Author SHA1 Message Date
Audric Ackermann bd53490d80
enable unsend requests 2021-10-15 12:18:20 +11:00
Audric Ackermann 6bd8b3695a
remove deferred promise unused 2021-10-05 16:37:10 +11:00
Audric Ackermann 1e8c8991ad
more cleanup 2021-10-04 10:56:54 +11:00
Audric Ackermann d55c96cb67
setup webrtc between two pubkey 2021-09-22 11:55:30 +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 Ackermann ab75f945ff
Ask confirm before delete account (#1910)
* disable sending on enter while composing

Fixes #1899 #1497

* ask confirmation before deleting account

* fix app start delete db when passowrd error

* fix double dialog issue with delete account

* fixup login screen
2021-09-16 14:42:13 +10:00
audric 1af08311dd fix tray cannot be destroyed
Relates #https://github.com/electron/electron/issues/17622
2021-08-13 15:44:32 +10:00
audric e5dab2781e remove spectron dependency 2021-08-13 14:47:00 +10:00
audric 1ffadad2ad remove ip_url from seed nodes as this is unused 2021-08-12 14:24:20 +10:00
audric c58312e853 do not render typing animation at all if not typing 2021-08-11 12:28:44 +10:00
audric 751a8f1882 start in tray setting directly creates the tray icon 2021-08-10 13:47:37 +10:00
audric 612e99af4a add a setting to start the app with a tray icon
Relates #1759
2021-08-10 11:57:27 +10:00
audric c276bf8dbe fix delete_all endpoint for testnet 2021-08-06 10:59:32 +10:00
Brice-W c415c715a5 added access to camera check 2021-07-30 16:44:01 +10:00
Brice-W 347038cf82 added microphone access check 2021-07-30 16:31:35 +10:00
audric 4f5072ee65 Merge remote-tracking branch 'upstream/clearnet' into perf-improv 2021-07-21 09:47:10 +10:00
Brice-W 8256451ec6 enable pinning conversations 2021-07-20 15:06:58 +10:00
Audric Ackermann af00c31a54
remove blake2b unused stuff 2021-07-12 17:28:23 +10:00
Audric Ackermann 02bc52f5ec
remove decrypt-lns unused 2021-07-12 17:27:12 +10:00
Audric Ackermann 85e0c9cf36
remove backup_test, backup and crypto related to backup only 2021-07-12 17:25:44 +10:00
Audric Ackermann 5b0b165ba9
Merge remote-tracking branch 'upstream/clearnet' into perf-improv 2021-07-12 13:01:23 +10:00
Brice-W ff7f201e04 add feature flag 2021-07-07 10:19:35 +10:00
Audric Ackermann c8aa73626e
do not load right panel data unless it is visibl 2021-07-06 14:02:47 +10:00
Audric Ackermann ef0b07bb7a
WIP 2021-07-01 14:39:13 +10:00
Audric Ackermann e090b8e8c6
remove getInstance on swarmPolling 2021-06-24 15:28:20 +10:00
Audric Ackermann e9e718bfcb
remove getInstance on MessageController=> getMessageController 2021-06-24 15:20:47 +10:00
Audric Ackermann 0b410404a3
remove keypair request manager 2021-06-24 15:19:04 +10:00
Audric Ackermann 89a0868fc3
remove getInstance of conversationController to get() 2021-06-24 15:10:38 +10:00
Audric Ackermann 9204d2f5dd
remove importer 2021-06-21 16:54:20 +10:00
Audric Ackermann 93e43fe929
move conversation dialogs to redux store 2021-06-18 14:31:16 +10:00
Audric Ackermann b4fc19fa78
remove lodash calls left from window 2021-06-17 17:00:59 +10:00
Audric Ackermann 744be229b7
move the PN server notify() to not use dot_net_api 2021-05-31 12:16:48 +10:00
Audric Ackermann 6f8c8ee1b3
remove most of sogsv1 and fsv1 and update version fetch url
version fetch is used to know when we have a new update
2021-05-31 11:22:37 +10:00
Audric Ackermann a2ee3ac98f
Merge remote-tracking branch 'upstream/clearnet' into scoring-system 2021-05-26 14:15:54 +10:00
Audric Ackermann 8c726fd745
reupload avatar every 10 days 2021-05-25 13:19:57 +10:00
Audric Ackermann a2ea02960e
add some retries for not already retries requests 2021-05-24 16:03:52 +10:00
Audric Ackermann 5cab7908b4
add some test for partial path rebuilding 2021-05-19 15:54:31 +10:00
Audric Ackermann c599d0b629
WIP 2021-05-17 14:39:56 +10:00
Audric Ackermann 12d40aa94e
Fix attachment extension vnd (#1628)
* allow openoffice document extension and don't use

* allow opendocument to be shared with the extension rather than mimetype

Fixes #1593

* allow message without padding

* add test for odt files
2021-05-13 13:32:52 +10:00
Audric Ackermann 8cb50ebc91
move onionPath building to outside of index.ts 2021-05-13 13:18:16 +10:00
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
2021-05-12 10:34:53 +10:00
Audric Ackermann 5525312542
syncConf every 7 days and fix link device 2021-05-06 16:00:41 +10:00
Audric Ackermann 7ec663df71
move SwarmPolling from window to require singleton 2021-05-05 16:40:14 +10:00
Audric Ackermann 9bf3cb1880
cleanup actionPanel 2021-04-30 13:26:33 +10:00
Audric Ackermann 710c9fa269
fix http request over onion 2021-04-30 11:12:44 +10:00
Audric Ackermann cca4de710b
remove featureFlag onion v2 => if onion enabled it is v2 2021-04-29 14:44:16 +10:00
Audric Ackermann 0c0da48150
remove pow 2021-04-28 15:24:45 +10:00
Audric Ackermann 98b69c17f0
add userblocking opengroupv2 and quoting back of messages 2021-04-27 16:56:34 +10:00
Audric Ackermann 8a77c2bc9d
enable outgoing padded attachments 2021-04-27 11:13:51 +10:00