Commit graph

569 commits

Author SHA1 Message Date
warrickct d627b8e11d Requesting flow working with sending message as acceptance. 2022-02-10 16:49:56 +11:00
Audric Ackermann c0d73bdaaa
bump back to 1.8.1 and enable back calls 2022-02-07 14:20:33 +11:00
Audric Ackermann 146a317301
build session without calls but with search ON 2022-02-07 12:12:55 +11:00
Audric Ackermann ceb5317160
remove profile_images as we are not using it 2022-02-03 10:58:49 +11:00
Audric Ackermann 6f5bca6660
allow more characters to be used in display name
We just deny the one used to add markers around a mentions on the
desktop client. which is ᅭ

Relates #2132
2022-02-03 10:58:44 +11:00
audric 247cb7c065 cleanup dependencies 2022-01-18 15:21:36 +11:00
Audric Ackermann c7565fe7b3 Move scale/resize and attachment logic to typescript 2022-01-12 17:01:32 +11:00
Audric Ackermann 3d87f0d5a2
enable calls and bump Session to 1.8.0 2021-12-20 10:16:13 +11:00
Audric Ackermann ce1e81a3e3
disable call for now + fix left pane actions overflow (#2085) 2021-12-15 15:29:10 +11:00
Audric Ackermann 28c7445dce
refactor most of the components to outside of their Session folder (#2072)
* refactor most of the components to outside of their Session folder

* finish moving overlay and memberListItem to react hook

* fix bug with kicked member len >2 not being displayed

also sort admins first in UpdateGroupMembers dialog

* fix admin leaving text of groupNotification

* add a useFocusMount hook to focus input fields on mount

* make click avatar convo item open only user dialog

* cleanup config default.json

* make sure to use convoController to build sync message

* disable showing pubkey on opengroups

* add a pause on audio playback

Fixes #2079
2021-12-14 15:15:12 +11:00
Audric Ackermann 1a699879cf
Add call duration (#2059)
* add call duration once connected

* close incoming call dialog if endCall from same sender

* disable message request toggle if featureFlag is OFF
2021-12-02 11:13:47 +11:00
Audric Ackermann cf44896a03
Minor call tweaks (#2051)
* show missed-call,started-call and answered call notification in chat

* fix types for createLastMessageUpdate

* show incoming dialog if we have a pending call when enable call receptio

* simplify a bit the avatar component

* move disableDrag to a custom hook

* speed up hash colors of avatarPlaceHolders

* fixup text selection and double click reply on message

* keep avatar decoded items longer before releasing memory

* add incoming/outgoing/missed call notification

also, merge that notification with the timer and group notification
component

* hangup call if no answer after 30sec

* refactor SessionInput using hook + add testid field for recovery

* disable message request feature flag for now

* fix merge issue

* force loading screen to be black instead of white

for our dark theme user's eyes safety
2021-11-29 17:40:46 +11:00
warrickct 9823a700e2 Addressing PR fixes 2021-11-24 11:14:24 +11:00
warrickct 86a9253144 Merge branch 'clearnet' into message-requests 2021-11-22 17:24:53 +11:00
warrickct 2e2941ba9b message request refactoring. 2021-11-22 12:08:48 +11:00
warrickct 2eab74246b PR changes. Disabling message requests behind feature flags. 2021-11-16 13:46:59 +11:00
Audric Ackermann 390af96514
WIP 2021-10-29 16:24:22 +11:00
Audric Ackermann dd281de903
cleanup feature flags 2021-10-27 13:57:14 +11:00
Audric Ackermann 5d9565a559
fix menu action for unsending messages 2021-10-26 16:08:04 +11:00
Audric Ackermann 314b76388f
WIP 2021-10-25 17:24:37 +11:00
Audric Ackermann f74ce2a3ae
msg with attachments gets no bigger than the attachment container 2021-10-21 17:07:57 +11:00
Audric Ackermann 99b139f5c4
split settings folder and start adding the settings for video call 2021-10-21 13:18:50 +11:00
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 fa32e61982
network delete_all force retries if we get a 421 2021-09-29 17:04:38 +10: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
Audric Ackermann 34148e67ec
add return of url after v2 attachment upload 2021-04-26 16:15:27 +10:00
Audric Ackermann 786cd384fb
add the OpenGroupManagerV2 logic to add and remove rooms 2021-04-22 18:04:12 +10:00
Audric Ackermann f7581cf4eb
increase prettier maxWidth to 100 2021-04-22 18:03:58 +10:00
Audric Ackermann 6896cffd75
Merge branch 'clearnet' into HEAD 2021-04-22 18:02:01 +10:00
Audric Ackermann 27323a12f4
Merge branch 'master' into clearnet 2021-04-22 17:55:35 +10:00
Audric Ackermann b9586c90ce
working open group v2 getInfo for https only 2021-04-20 14:52:02 +10:00
Audric Ackermann d98700b17f
allow unpadding of attachments if needed
currently, the padding of attachments is disabled behind  a featureFlags
2021-04-14 14:15:02 +10:00
Audric Ackermann ccf8a31ae3
move Attachments and Attachments_test to typescript 2021-04-14 10:34:48 +10:00
Audric Ackermann b588edb243
fix update of locale moment 2021-03-19 16:34:34 +11:00
Audric Ackermann b28687980c
fix update of locale moment 2021-03-19 13:59:03 +11:00
Audric Ackermann 35e57f2509
move mnemonic.js to typescript 2021-03-05 14:52:44 +11:00
Audric Ackermann 6fbe060973
move deleteAccount() to AccountManager 2021-03-03 10:36:30 +11:00
Audric Ackermann e6cf28cb2a prettier on pre-commit 2021-03-01 12:05:39 +11:00
Audric Ackermann 5d6d81b9ef Move accountManager to typescript 2021-03-01 10:39:46 +11:00
Audric Ackermann c55f204440
Merge branch 'clearnet' into restore-handle-configuration 2021-02-25 16:36:03 +11:00
Audric Ackermann 0a82bf98fa
Add displayName and avatar pointer to ConfigurationMessage 2021-02-25 10:28:41 +11:00
Audric Ackermann e466062f15 WIP 2021-02-23 14:22:01 +11:00
Audric Ackermann 1fc672da28 adress review 2021-02-22 14:40:47 +11:00
Audric Ackermann 5ab3680903 make OnionPath a singleton and build path on app Start only 2021-02-22 09:35:05 +11:00
Audric Ackermann 3ee0ccfac8 remove the forceSave logic for a message, always insert or replace 2021-02-19 13:01:24 +11:00
Audric Ackermann 8ea9f02cec Move data.js to data.ts 2021-02-15 15:16:52 +11:00
Audric Ackermann 7b81c4213a
Merge clearnet 2021-02-12 14:08:11 +11:00
Audric Ackermann 78e7255cb8
send the keypair to added members if we are admin
and remove request encryption keypair handling
2021-02-11 16:40:05 +11:00
Audric Ackermann 36fab86d30
Merge remote-tracking branch 'upstream/clearnet' into move-models-to-ts-2 2021-02-09 15:54:34 +11:00
Audric Ackermann df0b44db4c
Merge remote-tracking branch 'upstream/clearnet' into multi-device-v2 2021-02-09 13:46:06 +11:00
Audric Ackermann b76ce0f2ff
update models to TS part2 2021-02-08 16:18:36 +11:00
Audric Ackermann 65ed81e980
enable explicit group updates on the sending side 2021-02-08 15:37:40 +11:00