Commit Graph

4258 Commits (93581874b8f9df1ec48617b05bd7d46c8e1ca6cd)

Author SHA1 Message Date
Mikunj e875ba2527 remove got.
Fix session IDs not being redacted in logs.
5 years ago
Mikunj d671ce0055 Remove phone number libraries 5 years ago
Audric Ackermann 24114bab8d
Merge pull request #1024 from Bilb/fix-pre-approved-friend-request
fix pre approved friend requests
5 years ago
Audric Ackermann 0d0439cacc
Merge pull request #1020 from Bilb/spell-check-fixes
fix spell checker using the electron one
5 years ago
Audric Ackermann e48c7c2f3d
fix lint 5 years ago
Audric Ackermann 473c4d817b
fix bug with accept/reject buttons on friend request #914 5 years ago
Audric Ackermann 8f01d1dbb7
enable by default spell-check 5 years ago
Audric Ackermann e64ae7db5f
fixes #989 pre approved friend requests 5 years ago
Audric Ackermann 9ff16d7e60
move to electron spellchecker 5 years ago
Audric Ackermann bf0785f6b6
Revert "default to en_US if locale dictionnary is not found"
This reverts commit 2f3f3b8294.
5 years ago
Mikunj a9555e8439 Linting 5 years ago
Mikunj 496afa85cb Remove libsodium-wrapper.
Remove LokiSnodeChannel as we weren't using it.
5 years ago
Ryan Tharp 75ef07048a make sure retries is set 5 years ago
Ryan Tharp dcfae3bedc improve user UX since we shouldn't have to wait on startup 5 years ago
Ryan Tharp 0336b09fd4 tweak expire delay 5 years ago
Ryan Tharp a7981b1645 add some notes 5 years ago
Ryan Tharp 6fdde32948 convert reduce back to for...of loop per Maxim, markRandomNodeUnreachable() make handle edge removal cases and optimize snode lookup 5 years ago
Ryan Tharp 055ba2aa66 fix bug with missing ciphertext in log msg, remove unneeded space from log messages 5 years ago
Ryan Tharp ae9bcd45c2 only be picky about file uploads 5 years ago
Ryan Tharp 2acc839aa5 Merge branch 'clearnet' of https://github.com/loki-project/loki-messenger into ssvertriage 5 years ago
Audric Ackermann 2f3f3b8294
default to en_US if locale dictionnary is not found 5 years ago
Ryan Tharp 8ceb47823f fix logging style 5 years ago
Ryan Tharp 40951f0579 this.versionsRetrieved, handle ECONNREFUSED as bad otherwise retry in 1s, randomize list of snodes, only report status every 10% 5 years ago
Ryan Tharp c8b097c60e clean up logging a bit 5 years ago
Ryan Tharp 586aa877da change delay to 10s retry 5 years ago
Ryan Tharp cf5e186bcd change delay to 10s for initial retries, also remove space between time and units 5 years ago
Ryan Tharp 91b254d355 versionMap reverse lookup, markRandomNodeUnreachable removes from versionPools now, lint 5 years ago
Ryan Tharp 330b2b1b16 sort random pool into versions, getRandomProxySnodeAddress to use 2.0.2 or newer versions 5 years ago
Ryan Tharp fea679fe79 sendToProxy use getRandomProxySnodeAddress, retry with options 5 years ago
Maxim Shishmarev a91d925384
Merge pull request #1000 from msgmaxim/onion-requests
Client-side implementation for onion requests
5 years ago
Audric Ackermann 9ddda73ca2
Integration tests (#975)
* add first integration test Session

Checking window title
Checking window count
Can restore from seed

* FIXME torevert once found why this crash on app close

* [test] add join valid open group test

* [test] validate cannot join two times the same open group

* [test] move common things to common.js

* [test] move tests to separate files

* [test] clean

* [test] add send message to open group test

* [test] lint

* [test] rename hooks -> common

* [test] add 15s delay before considering test as slow

* upgrade electron 8.0.3 and spectron 10.0.0

* [test] signin from seed: validate pubkey

* Replace spellchecker in favor of typo-js

* [test] refactor common calls to common.js

* [test] add two different pubkey, mnemonic and displayname

* [test] FIXME unsafe eval needed for now

* [test] add: add friends test

* [test] working multi instance tests

* [test] FIXME disable snodeproxy

* [test] update yarn.lock

* [test] make tests more robust with restart from scratch each test

* [test] add link of two devices test and hard rm of apps before start (rm -r)

* remove unused file

* [test] lint

* [test] add registration from generated pubkey test

* [test] add beginning of network stub

* [test] stub "token" endpoint

* [test] add test of one message on pub group pull

* [test] add starting port randomize. looks to help for some bad start with multi instance

* [test] add stub for one to one chats (sessions)

* [test] clean code

* [test] finish add friend test and stub snode server

* [test] stub calls during link device test

* [test] add a flag to show some logs on stubbed snode

* [test] finish link of two device test. check both pubkey matches

* [test] add and use function to wrap erase+start+login+stub app

* [test] add method to login as friend and closed group test&messages

* Revert "[test] FIXME unsafe eval needed for now"

This reverts commit de5322fdae6cdab8e3b9bd9a52b7d172c9bc2d26.

* [test] apply review

* [test] fix lint

* [test] fix existing test with new spectron version

* [test] fix lint

* [test] refactor page objects

* [test] add delete account test

* [test] add unlink of two device test

* [test] make tiny waitForExists -> isExisting

* [test] add checks of link new device buttons

* upgrade fs-extra@9.0.0

* address pr review

* [test] fix spell_check test

Co-authored-by: Josh Perez <60019601+josh-signal@users.noreply.github.com>
5 years ago
Maxim Shishmarev d9759bb40a Explicitly throw on error 5 years ago
Audric Ackermann 3800ca2050
Merge pull request #999 from Bilb/notify-user-link-invalid-screen
Toast on device pairing request received but in device pairing mode
5 years ago
Maxim Shishmarev 0221e7b8c0 fix linter warnings 5 years ago
Maxim Shishmarev f2ef69f00d Handle timeouts in guard testing; address some review comments 5 years ago
Maxim Shishmarev b786df8045 Remove limit on requested nodes 5 years ago
Maxim Shishmarev 3a746109ea Path building for onion requests 5 years ago
Maxim Shishmarev a9e6d863c3 Disable long-polling 5 years ago
Vince 5c117072ff
Merge pull request #1002 from vincentbavitz/messages-open-groups
Messages open groups
5 years ago
Vincent 6360b539a3 linting 5 years ago
Ryan Tharp a9da21a807
Merge pull request #1001 from neuroscr/patchopensnapps
Fix serverRequest retry
5 years ago
Ryan Tharp 57b2840ed8 serverRequest: fix retry, fix note 5 years ago
Audric Ackermann b3d895caf3
Toast on device pairing request received but in device pairing mode 5 years ago
Vincent 6d9bcc3079 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into clearnet 5 years ago
Vincent 99a5766592 session nomenclature updates 5 years ago
Vince 78ba6f03e1
Merge pull request #988 from neuroscr/patchopensnapps
snode communication and logging clean up #2 & AppDotNot minor refactor
5 years ago
Ryan Tharp 7a0e972ca4 refactor getRandomPoolLength out of markRandomNodeUnreachable 5 years ago
Ryan Tharp 8bf77ce44f collapse difficulty branching 5 years ago
Ryan Tharp d15445a1e0 don't create unneeded variables 5 years ago
Ryan Tharp 4bb2e83cb3 lint 5 years ago
Ryan Tharp bb7d4820a5
Merge pull request #959 from neuroscr/opengroupordering
open group avatar redo conversion properly
5 years ago
Ryan Tharp 99679741c1 some renames, improve refresh random pool failures better 5 years ago
Ryan Tharp 6bdc269081 include function name in log message 5 years ago
Ryan Tharp e4d762a358 Merge branch 'clearnet' of https://github.com/loki-project/loki-messenger into patchopensnapps 5 years ago
Vince 0f06046247
Merge pull request #987 from loki-project/open-group-fix
Fix messages not being created properly in open groups
5 years ago
Vince bed64b2ab8
Merge pull request #935 from Bilb/fix-contextmenu-cache-conversation-view
Fix menu cache conversation view
5 years ago
Ryan Tharp 8d4be4cb0b lint 5 years ago
Ryan Tharp e66e30bb0b URL for lint 5 years ago
Ryan Tharp 07ce97aa56 serverRequest/sendToProxy refactor, start messagesPollLock implementation, improve logging 5 years ago
Ryan Tharp 2d76b1eda9 .loki support improvement 5 years ago
Ryan Tharp 9a01317e96 log error 5 years ago
Ryan Tharp 455bfa4ab7 result guard, mark internal-only intended functions with _ prefix and simplify parameters, logging improvements 5 years ago
Ryan Tharp 241e64b94b lint 5 years ago
Ryan Tharp e3545fa338 change unreachableNode 2nd param to object, put lock around getRandomSnodeAddress so they can't stack, markRandomNodeUnreachable returns remaining count, adjust logging 5 years ago
Ryan Tharp 1c78e1a701 sendToProxy use agent, handle 401/500s, retry system 5 years ago
Mikunj 33925d69e9 Cleanup 5 years ago
Mikunj Varsani d8b982e194 Fix messages not being created properly in open groups 5 years ago
Mikunj Varsani ba48028375
Merge pull request #977 from konstantinullrich/#631-Keyboard-selection-via-Shift-not-working-when-starting-a-selection-from-the-right
Implement Blib's change
5 years ago
Mikunj Varsani d120cbb55d
Merge pull request #966 from majestrate/loki-tld-hack-2020-03-10
make session "work" with .loki tld
5 years ago
Konstantin Ullrich c410ef5354 Remove Debuglog 5 years ago
Konstantin Ullrich 2ed7ed5de5 Implement Blib's change 5 years ago
Mikunj 8c91aa04f1 Speed up message creation.
We were fetching all of our devices everytime a new message was received.
This was only used for when the message was a public chat message, so i moved it into the relevant if statement.

In the future if we increase the device link limit, we'll need to fetch all our devices on application launch or something.
5 years ago
Mikunj 26140e0ed0 Send delivery receipts asynchronously 5 years ago
Jeff Becker 8d684f7b1b
make .loki public chats "work"
passing number zero to environmental variables UNSETS the variable, pass "0" instead.
this commit makes it "work" but is probably not the right fix, that comes later. (tm)
5 years ago
Mikunj 745e898bcc Remove more unused functions 5 years ago
Mikunj d5bb069207 Cleanup unused functions 5 years ago
Mikunj eeb6257526 Remove settings view 5 years ago
Ryan Tharp 738057587d open group avatar redo conversion properly 5 years ago
Vince 868ad39e88
Merge pull request #932 from neuroscr/fixconvview
Fix message still loading exception
5 years ago
Mikunj Varsani 64778d15d7
Merge pull request #948 from konstantinullrich/#893-Unhandled-Promise-Rejection-error-when-updating
Move cleanupOrphanedAttachments before restart
5 years ago
Konstantin Ullrich 9cc9d61fcd Remove a redundant restart call 5 years ago
Konstantin Ullrich 1ea0edafa9 Remove redundant if statement to avoid future bugs 5 years ago
Konstantin Ullrich f7d562eafe lint remove empty line after newVersion if 5 years ago
Konstantin Ullrich 1a9206fdbe Move cleanupOrphanedAttachments before restart 5 years ago
Ryan Tharp 91ad732549
Merge pull request #934 from neuroscr/opengroupordering
Fix message order when mix multidevice messages come in AND default avatars
5 years ago
Ryan Tharp ce876a8024 not meant to include this 5 years ago
Ryan Tharp 2b29b76d66 lint 5 years ago
Ryan Tharp 3038a8c7d2 use lodash to reduce confusion 5 years ago
Ryan Tharp 1792e2d952 add editGroupNameOrPicture to gear 5 years ago
Ryan Tharp 81d43ba5ab lint 5 years ago
Ryan Tharp 56d5bb5b33
fix lint 5 years ago
Audric Ackermann 488c0b4e08
Merge pull request #917 from Bilb/closed-group-contact-panel
Make closed groups show up in contacts left panel
5 years ago
Mikunj Varsani 053b31ad38
Merge pull request #938 from Mikunj/github-actions
GitHub actions Part 2
5 years ago
Vince 67e3846787
Merge pull request #905 from jian10au/scaleslider
Zoom factor slider
5 years ago
Mikunj a09e370e1d Added testing on pull request
Disable proxy in tests.
5 years ago
Ryan Tharp c36fd8ae62 handle image/ avatar paths 5 years ago
Ryan Tharp 46d401ecbf Merge branch 'clearnet' of https://github.com/loki-project/loki-messenger into opengroupordering 5 years ago
Audric Ackermann 370467a127
Merge pull request #878 from Bilb/group-profile-image
Group profile image upload
5 years ago
Audric Ackermann a52127de5d
do not trigger change of unchanged messages on conversation reset 5 years ago
Ryan Tharp 97393ef25d fix message order when mix multidevice messages, improve error logging 5 years ago
Ryan Tharp 5b412f74ad Revert "lint"
This reverts commit c6b6ab8be6.
5 years ago
Ryan Tharp c6b6ab8be6 lint 5 years ago
Ryan Tharp 4254f15b44 fix message still loading issue 5 years ago
Ryan Tharp 845fc34964
Fix my typo 5 years ago
Brian Jian Zhao 203d314254 fix the slider bug 5 years ago
Brian Jian Zhao 23da1831c2 removed unnecessary comments after review 5 years ago
Ryan Tharp 0c43c511d7
Merge pull request #868 from neuroscr/tls-fix
Snode communication retries and logging improvement
5 years ago
Audric Ackermann 6b2afdf047
Merge pull request #923 from Bilb/fix-close-sessionmodal
fix catch of mouse events on forgotten modals
5 years ago
Audric Ackermann ff8c2fc050
debounce notifications update to 2sec 5 years ago
Audric Ackermann f5b3eb394c
enable notifications after 10seconds of start or reconnect 5 years ago
Audric Ackermann d6a9038198
enable back notifications 5 years ago
Audric Ackermann daec39b94d
fix catch of mouse events on forgotten modals 5 years ago
Audric Ackermann f0760b22ea
Make closed groups show up in contacts left panel 5 years ago
Audric Ackermann 7eab7fbcf4
Merge pull request #869 from Bilb/dialog-exit-esc-click-outside
Dialog exit esc click outside
5 years ago
Mikunj Varsani adbc791dcb
Merge pull request #877 from loki-project/group-sync
Closed group syncing
5 years ago
Brian Jian Zhao b2322bae02 check to whether the zoomFactor is shown in preload.js 5 years ago
Audric Ackermann 15738c3525
display continue session signin with seed 5 years ago
Audric Ackermann e0ff1755ac
lint 5 years ago
Brian 96e9a68abd add zoomfactor to main 5 years ago
Audric Ackermann 790085bea1
disable profile image upload for closed group 5 years ago
Audric Ackermann 1428cfe1dd
fix download profile image open groups 5 years ago
Audric Ackermann b756332f89
fix group member dialog and refresh right after group avatar update 5 years ago
Audric Ackermann 60ed8f2972
make download of group avatar work 5 years ago
Mikunj 0eaebcbcac Don't send contact sync message with pairing authorisation.
Don't send secondary devices in contact sync messages.
5 years ago
Audric Ackermann 6d5aed7de8
make upload of group picture work 5 years ago
Mikunj f35493ce9f Linting 5 years ago
Mikunj b61dd6a839 Don't send groups in contact sync message 5 years ago
Mikunj 62825faa61 Don't perform admin check if it's a new group that we are creating 5 years ago
Mikunj fc6ca57e1e Added support for group request info 5 years ago
Mikunj d20d31b574 Linting 5 years ago
Mikunj c6be289092 Fix leaving closed groups 5 years ago
Ryan Tharp a85fc9d0ba loki-messenger => session-desktop 5 years ago
Ryan Tharp a02fe95556 detect not ready through statusCode instead of string, log any non-200 statusCode, warn if no reply at all, try to debug iv errors, don't call .json() on falsish values 5 years ago
Ryan Tharp 4a55040688 improve code quality 5 years ago
Audric Ackermann 1f411df0ce
lint 5 years ago
Audric Ackermann 99133437d6
close all dialogs on ESC or click outside 5 years ago
Ryan Tharp 4ba4b8bb54 improve logging, add one retry if not enough snodes in the swarm on long poll start 5 years ago
Ryan Tharp 69dcfa2845 getSwarmNodes refactor to include results from RANDOM_SNODES_TO_USE nodes, make refreshSwarmNodesForPubKey return filteredNodes, initialiseRandomPool() retries 3 times with delays 5 years ago
Ryan Tharp 774c468c39 handle non-base64 responses appropriately, include which server failed in logs 5 years ago
Audric Ackermann b4f1afe720
do not add new members if closed group size >= 10 5 years ago
Vince e2f74b0701
Merge pull request #853 from vincentbavitz/clearnet
More animations
5 years ago
Audric Ackermann f47d1fd9ef
Merge pull request #850 from Bilb/communicate-file-size-limit-user
show error when user try to add file >10mb as attachment
5 years ago
Vincent ad48730300 More animations 5 years ago
Mikunj Varsani cea5acf62e
Merge pull request #843 from loki-project/session-reset-cleanup
Refactor session reset handling
5 years ago
Audric Ackermann 61a243efbd
show errors when user try to add file >10mb as attachment 5 years ago
Audric Ackermann ff10637a5a
separate update group name and group members dialog
(add and remove members are separated)
5 years ago
Vincent 30ccb81d3d Disappearing messages in Channel Settings panel 5 years ago
Mikunj Varsani 8ffb1a0a10 Refactor session reset handling 5 years ago
Vincent cf0b9e45fa Emoji spacing & message highlight formatting 5 years ago
Vincent 2101abb911 Modal blurs and stylistic simplifications 5 years ago
Ryan Tharp 0667269690 remove unneeded async 5 years ago
Ryan Tharp 4210e4d14a fix no token detection conditions 5 years ago
Ryan Tharp 930bc2d094
Merge pull request #827 from neuroscr/tls-fix
improve multidevice profile name handling in open groups
5 years ago
Ryan Tharp e6f5f4e718
Merge pull request #829 from neuroscr/file-notoken
Make private attachments use generic token
5 years ago
Ryan Tharp fc19c2520d
Merge pull request #835 from neuroscr/opengrouppollfix
Open group polling fix
5 years ago
Ryan Tharp 846228ce26 Merge branch 'tls-fix' of https://github.com/neuroscr/loki-messenger into tls-fix 5 years ago
Ryan Tharp 5feee5dd5f handle profile properly if primaryDevicePubKey is not set 5 years ago
Ryan Tharp d0f0cac31e lint 5 years ago
Mikunj Varsani 13634a42c6
Merge pull request #834 from loki-project/multi-device-fix
Multi device fixes
5 years ago
Ryan Tharp dc14eb9ca7 open(), logging, stop() clears timers 5 years ago
Mikunj Varsani cc85de5250 Optimisation and lint fixes 5 years ago
Ryan Tharp eb263a9ee7 open() 5 years ago
Mikunj Varsani 4f6dd7a8d5 Rename functions to be less confusing 5 years ago
Mikunj Varsani a75ef365b8 Fix device unlinking.
Fix session request being sent even if we have keys to setup a session.
Fix minor crash.
5 years ago
Ryan Tharp c521497f90
lint 5 years ago
Ryan Tharp 14f64e3769
Remove unneeded branch 5 years ago
Ryan Tharp 6faa15d5b4
Update js/modules/loki_app_dot_net_api.js
Co-Authored-By: Mikunj Varsani <Mikunj@users.noreply.github.com>
5 years ago
Mikunj Varsani e1d06fc9be Fix messages from secondary device not being mapped correctly to their primary device.
Fix creating closed groups from secondary device.
Fix primary device showing up in create group dialog.
5 years ago
Mikunj Varsani d9c521b09d Fix message syncing in closed groups 5 years ago
Ryan Tharp bd4600f6c4 fix spelling and log url on serverRequest with non-json response 5 years ago
Ryan Tharp 277e2e5340 make uploadPrivateAttachment static and use window.tokenlessFileServerAdnAPI, warn if no token yet 5 years ago
Ryan Tharp 9826cf0545 use now static version of uploadPrivateAttachment 5 years ago
Ryan Tharp c83201ee9c set a default token 5 years ago
Ryan Tharp 0bf7dfab6a log.verbose isn't a thing 5 years ago
Mikunj Varsani 054a523738 Fix linked device sending automatic friend request when it already has keys for a device 5 years ago
Ryan Tharp 60259ab0bb handle clearing profileName correctly, support multidevice profiles better, use getLokiProfile() 5 years ago
Ryan Tharp 9a31e3703c make sure sendToProxy get the textResponse option from submit_challenge, improve logging 5 years ago
Ryan Tharp 8363548f01 Merge pull request #823 from neuroscr/tls-fix
Some snode JSON parsing/keypair loading from storage guards, RSS case fix, lint
5 years ago
Mikunj Varsani beb4cdbed8 Closed group fixes. (#816)
* Fix group updates not syning

* Fix leaving closed groups

* Fix incorrect members being shown on create group dialog

* Linting

* Fix create closed group showing our own conversation
5 years ago
Ryan Tharp 926a245bf6 lint and note 5 years ago
Ryan Tharp 0223f40de2 lint 5 years ago
Ryan Tharp 3ebb308175 lint 5 years ago
Ryan Tharp 145cfd762d handle inner JSON parsing errors 5 years ago
Ryan Tharp 4a65a5aa12 handle JSON parsing error 5 years ago
Ryan Tharp 78244d9ef8 file proxy is json encoded 5 years ago
Ryan Tharp b9ab28e2fc inform that we expect a non-json repsonse 5 years ago
Ryan Tharp 4d027909c6 more text response fixes, better snode not ready detection 5 years ago
Ryan Tharp df1d032d96 headers protection, textResponse support, improve logging 5 years ago
Ryan Tharp 47e87a4720 add note 5 years ago
Mikunj Varsani c37650c45d Don't wait for file server to return tokens when establishing home connection. 5 years ago
Mikunj Varsani 8b1e24fc44 Clean 5 years ago
Mikunj Varsani 75660c7269 fixed file server holding up message sender init.
fix joining closed groups.
5 years ago
Ryan Tharp 69fe066bcc guards incase there are no members yet, fixes dialog not showing up 5 years ago
Mikunj Varsani 21e982e5c2 Fix open group joining. 5 years ago
Ryan Tharp 4c44265909 no need to validate empty token, support lokinet/getession file domains, mark broken snodes as bad, improve logging 5 years ago
Ryan Tharp ede5258dd3 improve logging 5 years ago
Ryan Tharp 99afd33fb4 improve logging 5 years ago
Ryan Tharp 3bba0571a0 markRandomNodeUnreachable() refactor, notes/logging 5 years ago
Ryan Tharp 156c11d30f allowing sending of messages if we're still waiting to hear back 5 years ago
Ryan Tharp 6c73fa99e2 extension.expiredStatus(), adjustable timers, improve guards 5 years ago