Commit Graph

410 Commits (clearnet)

Author SHA1 Message Date
audric 247cb7c065 cleanup dependencies 2 years ago
audric 2e1016a90e remove unused libxmljs dependency 2 years ago
audric e515ce3ca5 Merge remote-tracking branch 'upstream/clearnet' into cleanup-attachment 2 years ago
burtonemily ffdf2519ca
Integration test (#2128)
* Testing playwright for Desktop automation

* converting tests from javascript to typescript and finishing create user automated test

* Trying to delete app data when test finishes, not through UI

* Undoing the code for clear database once test completes

* Creating POM for cleanup function

* cleanup function for playwright tests

* Creating a new user function, open electron function and clean up function

* fixes user object for new user function

* Adds a login function and start of send message test

* Creating test for sending messages, logging in and adding in data test id tags

* add more data-testid field

* updates new contact test, to have multiple windows and users running simultaneously

* updating clean up and new user test

* Fixing issues with creating new user

* new contact test

* New test to check password functionality

* make sure to cleanup data before running tests

* New group creation test and sending message function

* Adding new automated test for sending message to a contact

* create group test and updating new contact test to include date in test message

* updating package.json to remove webdriver and chromedriver and spectron

Co-authored-by: Audric Ackermann <audric@loki.network>
2 years ago
Audric Ackermann c7565fe7b3 Move scale/resize and attachment logic to typescript 2 years ago
Audric Ackermann d7424f1b69
update electron to 13.6.2
Relates #2057
2 years ago
Audric Ackermann e33b6eadc4
bump typescript to 4.5.4 2 years ago
Audric Ackermann e17b5e0671
Fix attachment dl freeze (#2086)
* fix attachment download freezing app for some opengroups

* make registration page work with smaller height
2 years ago
Audric Ackermann 48e7a0e25f
Various UI fixes (#2070)
* cleanup unused convo json fields in db

* display a toast if the user is not approved yet on call OFFER received

* enable CBR for calls

* do not update active_at on configMessage if !!active_at

* remove mkdirp dependency

* disable call button if focused convo is blocked

* quote: do not include the full body in quote, but just the first 100

* click on the edit profile qr code padding

* Allow longer input for opengroup join overlay

Fixes #2068

* Fix overlay feature for start new session button

* make ringing depend on redux CALL status

* turn ON read-receipt by default
3 years ago
Audric Ackermann 22e4c9d850
fix archlinux pw unused issue
on archlinux, the appimage links to the system sqlite by default which
does not support sqlcipher
3 years ago
Audric Ackermann f871ed53df
add a sample test with playwright 3 years ago
Audric Ackermann 1e8c8991ad
more cleanup 3 years ago
Audric Ackermann c54f63ab45
add listener for video calls events 3 years ago
audric bfc805c9d4 fix search logic and UI cosmetic fixes 3 years ago
audric 2825b66ef6 add screen break for jump in messages timestamp 3 years ago
audric 7fa50b4a73 do not pass props not needed between message list components 3 years ago
audric 6a50484597 fix tests for swarm polling 3 years ago
audric e5dab2781e remove spectron dependency 3 years ago
audric 88dc5bf653 bump electron to > 13 3 years ago
audric bea704ecf0 bump react to 17 3 years ago
Audric Ackermann 57b22cbdda
build deb and appImage separately
this is to unsure that the afterpack hook is not called when building
the app deb package
3 years ago
Audric Ackermann ef2d22ce8a
fix app icon for all platforms 3 years ago
Audric Ackermann c6a394664f
bump electron-builder to 22.8.0 3 years ago
Audric Ackermann 16e80b8649
build with electron-builder 22.5.0
Relates #1771
3 years ago
Audric Ackermann 0e4d7ec21a
WIP 3 years ago
Audric Ackermann 3e27a397d7
bump version of node-sass 3 years ago
Audric Ackermann ac19c2a8ab
removed husky 3 years ago
Audric Ackermann b385a9b101
test with better-sqlite3 bindings 3 years ago
Audric Ackermann a0afd3efe4
add some performance measure for commit calls 3 years ago
Warrick Corfe-Tan da00ac8d44 Saving userConfig redux slice to local storage. 3 years ago
Audric Ackermann c9d7f4a1ab
Merge remote-tracking branch 'w/onion-paths' into clearnet 3 years ago
Warrick Corfe-Tan 6914e29662 upgrade ip2country version. 3 years ago
Audric Ackermann 5edfa530f2
revert changes to package.json overwritten` 3 years ago
Audric Ackermann afe4cf1ee7
fix double dash in url not being converted to link
Fixes #1638
3 years ago
Warrick Corfe-Tan 98fe0a87d8 WIP making changes to modal. 3 years ago
Warrick Corfe-Tan 22a32283b7 WIP Adding country and styling to modals. 3 years ago
Audric Ackermann bad438eaee
fix types for react-mentions 3 years ago
Audric Ackermann 45fa878790
remove react-mention custom build now that it is merged upstream 3 years ago
Audric Ackermann f4c3c82e31
Add some test for onion path rebuild handling 3 years ago
Audric Ackermann 8b1826bdec
update node-sqlcipher commit hash 3 years ago
Audric Ackermann 930c4d5b81
fix windows build 3 years ago
Audric Ackermann ba5ec93505
Merge pull request #1554 from Bilb/encrypt-local-attachments
Encrypt local attachments
3 years ago
Audric Ackermann 0ce1059a96
disable UI recording bars so we can encode audio MP3 3 years ago
Audric Ackermann ccf8a31ae3
move Attachments and Attachments_test to typescript 3 years ago
Audric Ackermann def03c8baa
working encrypt/decrypt of attachments 3 years ago
Audric Ackermann 35e57f2509
move mnemonic.js to typescript 3 years ago
Audric Ackermann e6cf28cb2a prettier on pre-commit 3 years ago
Audric Ackermann 5ec9722e00
autobind typescript class methods with autobind 3 years ago
Audric Ackermann adf0d03d35
add test for the MessageEncrypter using Session protocol 3 years ago
Audric Ackermann cf2ddc64d8 upgrade libsodium wrapper and add types 4 years ago
Audric Ackermann 26c9eee85d
add sanitize.css and fix up z-index for audio recording canvas 4 years ago
Audric Ackermann 6afe893359
fix up a few test 4 years ago
Audric Ackermann d729e49840
update to latest major version of react-contexify 4 years ago
Audric Ackermann 4df8e06c3c
patch react-mentions types with custom one
this can be reverted once
https://github.com/signavio/react-mentions/pull/449 is merged upstream,
as the DefinitelyTyped types will be regenerated
4 years ago
Audric Ackermann f673589c56
add types for blueimp-load-image 4 years ago
Audric Ackermann d0043ca245
use react-intersection to accurately mark messages as read 4 years ago
Audric Ackermann b5af8eb215
Add Mentions with react-mentions 4 years ago
Audric Ackermann e45ce43e01
store messages currently loaded in convo on redux 4 years ago
Audric Ackermann e613613416
show toast with react-toastify and make them a styled-component 4 years ago
Audric Ackermann 13e02b5bf1
add staged link previews for everything from signal 4 years ago
Audric Ackermann f5818817e9
remove references to old emoji-panel package 4 years ago
Audric Ackermann 3f8b884055
switch react-contextmenu to react-contexify 4 years ago
Audric Ackermann a7bdc93ca8
working drag and drop, but no scrolling on the conversation messages 4 years ago
Audric Ackermann 1768f6c6f7
add styled-component 5.1.1 as 5.2.0 is making not adding style to DOM 4 years ago
Vincent 9f1cef9844 emoji-rendering 4 years ago
Vincent 5ed6a9dda9 reorganise-dropin 4 years ago
Vincent e324d5c0ed Polish audio ui 4 years ago
Vincent 3591001ef1 audio component ui 4 years ago
Vincent c26e20d33f css-loader 4 years ago
Vincent 9ec99da9f9 SessionRecording-cleanup 4 years ago
Vincent 6078be1657 revive-ts-refactor 4 years ago
Vincent 83528f4b8d Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into refactor-ts-react 4 years ago
Mikunj 8f82e7a442 Fix multi device pairing 4 years ago
Maxim Shishmarev 0904e7a8ca Refactor from message polling to content message handling 4 years ago
Audric Ackermann 9ec0c8e6a8
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending 4 years ago
Audric Ackermann 702a7d6b88
upgrade tslint to 5.19 to have no-promise-as-boolean 4 years ago
Mikunj 3f93b25ac2 Added string utils 4 years ago
Mikunj ae2b8334e0 Replace bytebuffer component 4 years ago
Maxim Shishmarev 8ca7b8cfb4 Message receiving refactor: handleDataMessage onwards 4 years ago
Mikunj f710606909 Added p-retry 4 years ago
Mikunj cd58e9b86e Add utils for stubbing.
Added ImportMock for easier es6 stubbing.
4 years ago
Audric Ackermann ee6ee7ec4f
Merge remote-tracking branch 'upstream/message-sending-refactor' into audric/refactor-message-sending 4 years ago
Audric Ackermann c6fb04d435
upgrade prettier to support typescript 3.7 4 years ago
Audric Ackermann 8f072de05d
upgrade to ts 3.7.4 4 years ago
Audric Ackermann 1961ae8908
update yarn.lock 4 years ago
Mikunj 3dfc1ca213 Improved JobQueue.
Added tests.
4 years ago
Vincent ffe30d4256 Merge new fonts 4 years ago
Vincent cf05d4ff6c revivify 4 years ago
Vincent 6cda163b27 upgrade typescript 4 years ago
Mikunj 30a6436b86 Add yarn lock 4 years ago
Mikunj Varsani 24a3e05154
Revert "Revert "Clean up unused dependencies."" 4 years ago
Vince 5ff7476359
Revert "Clean up unused dependencies." 4 years ago
Vince 6d591d956d
Merge pull request #1033 from Mikunj/package-cleanup
Clean up unused dependencies.
4 years ago
Maxim Shishmarev 804b4e54ac
Merge pull request #1041 from msgmaxim/lns
API implementation for LNS
4 years ago
Maxim Shishmarev 932ea23ceb API implementation for LNS 4 years ago
Ryan Tharp 7cff4aa221 Merge branch 'master' of https://github.com/loki-project/loki-messenger into patchopensnapps 4 years ago
Mikunj eed0ea058c Removed other dependencies 4 years ago
Mikunj 9d2417c2f6 Removed proxy-agent and web-socket.
Trimmed down web_api.js to most basic functions we are using. This needs to be completely removed in the future.
4 years ago
Mikunj ba1525d6de Remove js-yaml 4 years ago
Mikunj b38c666e95 Remove js-sha512 4 years ago
Mikunj 1cadb01e8d Remove intl-tel-input 4 years ago
Mikunj e875ba2527 remove got.
Fix session IDs not being redacted in logs.
4 years ago
Mikunj d671ce0055 Remove phone number libraries 4 years ago
Audric Ackermann a314b1f3de
remove typo-js and electron-context-menu packages 4 years ago
Audric Ackermann 77ef5de17e
Merge pull request #1018 from vincentbavitz/link-device-copy
Link Device Copy
4 years ago
Mikunj 496afa85cb Remove libsodium-wrapper.
Remove LokiSnodeChannel as we weren't using it.
4 years ago
Vincent 4dcfc17735 Electron upgrade 4 years ago
Vincent 1a3ecf10df Device pairing copy 4 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>
4 years ago
Vincent c7d96f2565 Marking messages as read completed 4 years ago
Vincent 9a6aafe99c Pull from clearnet 4 years ago
Vincent 19a5571536 Protobuf init for attachments 4 years ago
Vincent 1950876307 Audio playback and pause complete 4 years ago
Mikunj Varsani f0bb328952
Merge pull request #951 from loki-project/clearnet
Merge into Master; prep for v1.0.3
4 years ago
Ryan Tharp 178d788dca Enable auto-updating using electron-updater 4 years ago
Vincent 2dc5885c88 Microphone timer 4 years ago
Mikunj 78389440c0 Update sqlcipher to 4.2.0. 4 years ago
Mikunj a09e370e1d Added testing on pull request
Disable proxy in tests.
4 years ago
Vincent 548db7150d Start message selection reactification 4 years ago
Vincent 57b20d2f1a Loading messages by id 4 years ago
Vincent 2c5e2df817 reactification conversationview bottombar initial 4 years ago
Mikunj Varsani 7e68bc82a3 v1.0.1 release.
Merge branch 'clearnet'
4 years ago
Mikunj Varsani aec4ad0a26
GitHub actions (#814)
* Added build and release actions

* Added building instructions.
Updated electron builder to 23.2.3.
Fix unpacked directory not being removed correctly.

* Minor fix to build command

* Allow users to change install location on windows.
Added AppImage for linux.

* Fix artifact naming
4 years ago
Mikunj Varsani 625fe0fee2
Session v1.0 changes (#802)
* correct typo in readme

* include log

* decrypt file server response, remove debug, handle crypt before _sendToProxy, improve json parsing failure logging

* support file uploads on file proxy, fix _sendToProxy calling

* bump form-data to 3.0

* initial refactor of feaure flag detection statements in serverRequest()

* fix  send-message line-height with multiple lines

* fix lint

* fix position of delete account modal

* Profile picture upload, fixes and copy

* Various changes suggested by redesign overview

* Scrolling button updated and animations to modals

* Display subscriber count for open chats

* Prevent illegal username and passwords

* Delete channel / group merge

* Solidification of minor changes w appview injections

* hide description field in group panel for now

* fix join publicgroups pulls

* increase min height respecting ratio

* allow space inside a display name but not at start or end

* fix height of leftpane overlay view

* add back typing indicator and read receipt setting under privacy

* Auto-focus new open chat input box

* Password lock screen and delete data screen

* touchups

* Resolving Bilb revisions

* Disable link previews as default per Kee on signup

* remove date, we have git

* add missing semicolon

* _sendToProxy pass headers/handle response refactor, lint

* fix my yarn conflict/resolve

* include IV in server response

* Sealed sender support

* Support sealed sender for friend requests

* fix lint

* Remove unused destinationRegistrationId; lint

* Update messages.json

* pull RSS through file proxy

* fix unit tests: remove not used count in scrolldown view and assert svg
present

* Disable auto-joining default loki open groups

* session-id-editable-textarea

* fix the textscramble for sessionID on registration

* speed up lint, add lint-full/format-full, make sure use lint-full

* add skipToken to establishConnection options, smuggle out secureRpcPubKey

* get latest version through snode proxy, remove clearfix from ExpiredAlertBanner

* expose semver and LokiAppDotNetServerAPI because we can't get ourKey from storage early enough

* update note

* fix upgrade link, wrap expiredWarning in span for styling, use br to clear the float, trim trailing whitespace

* designalify

* designalify

* designalify user agent

* continue designalification

* make expired banner legible

* remove ugly TLS hack

* disable unauthorization rejection when making https requests limited to lokiRpc

* Update main.js

Aspect ratio amendment

* Constants rework

* local commit

* event listeners

* address missing comma for lint

* fix header sessions message section

* fix profile image size conversation list with pending friend request

* textarea centering

* refresh files in group in group panel

* Looking into keyboard navigation

* Remove P2P

* cache eslint on `lint` but not `ready`

* Cleanup media view formatting

* force locale to be EN until our files are updated and translated

* Simplification of keyup

* Updated all icon references

* SASS fixup

* fix disabled state of message input on sent friendrequest

* trim pubkey when user can enter one to remove whitespaces

* remove lZ in path which fixes errors on svg and does not alter rendering

* fix text scramble animation on registration

* reload app on ctrl-r or f5 from anywhere

* add back file which should have not been deleted

* fix lint and clean code

* fix lint

* add .loki to have a self-signed cert

* Remove mixpanel

* use local shortcut instead of global shortcut

otherwise, ctrl+r is only caught bu the last loaded instance

* open the conversation when accepting a friend request

also, it does what is needed to show the new friend in the friend list

* make sure token comms are done over fileProxy, other notes, logging adjustment

* leftpane sections titles are Wasa bold

* minor refactor

* onboarding messageview

* linter

* fix padding buttons overlay

* do not render session-id-editable border when textarea disabled

* textarea sessionID SpaceMono font

* various touchups

* fix font of description to sfprodisplay

* reduce triple dots conversation header icon size

* reduce size of conversationHeader title font size

* fix font for session-search-input

* make conversationlistitem title font wasa

* fix green and white border under title in leftpane

* fix panel-text-divider font-size and family

* disable completely borders for profile images

* make profile image which where 48pixels big 36 noew, as no more border

* Complete conditional message onboarding

* cache file deletions

* Link preview warning on setting toggle

* Messages.json amendments

* Join channel generalisation

* Localise global vars

* remove eslintcache

* rm global launchcount

* Remove source field from envelope

* Session public chat icon

* CLosed groups ui initial listprops

* Desktop: enable useSnodeProxy feature flag

* file proxy needs to be able to talk to snode

- disable TLS check for fileProxy
- lokiHttpsAgent => snodeHttpsAgent (since we use for two different things now)

* enable useSealedSender too per Maxim

* lint

* lint

* window.extension.expiredPromise version

* better error checking

* use promise version to see if we're expired

* fix typo

* lint

* put back seemingly now required process.env.NODE_TLS_REJECT_UNAUTHORIZED

* fix querystring in file-proxy

* lint

* fix typo

* Remove more references to signal.org

* make sure TLS is forced on open groups, improve serverRequest error message

* Closed groups UI

* function params changes

* turn off snode proxy logging

* include useful info on error

* actually validate URL before starting up a bunch of timers

* Closed groups overlay integration

* move comments from connecting_to_server_dialog_view

* use attempt from window object to reduce code duplication

* refactor out validServer()

* lint

* lint caught typo

* Rename BACKGROUND_FRIEND_REQUEST to SESSION_REQUEST.
Don't trigger friend request logic if a message is aimed at a group.

* Linting

* Closed group joining completed w/o backend

* Fix friend request messages being sent to users you don't have a session in closed groups.
Disable typing messages and read receipts in groups.
Send out session request messages if you don't have a session with a member in the group.

* Remove unneeded boolean condition.

* Closed group update message stylgin

* constants renaming

* Message deletion fix

* gruntify

* fix grunt error

* expose isRss, don't close uncloseable Rss conversation on deleteMessages

* remove copyId and block user on RSS feeds

* remove options from RSS feed that don't make any sense and don't work

* fix grunt error

* squelch RSS duplicate messages

* extension.expiredStatus(), adjustable timers, improve guards

* allowing sending of messages if we're still waiting to hear back

* markRandomNodeUnreachable() refactor, notes/logging

* improve logging

* improve logging

* no need to validate empty token, support lokinet/getession file domains, mark broken snodes as bad, improve logging

* try to address travis-osx lint complaints

* not designed to have a period at the end of titleIsNow

* put period back at the end

* Catch a stray loki messenger

* fix stray loki messenger

* loki messenger isnt a thing

* lint

* Fix open group joining.

* guards incase there are no members yet, fixes dialog not showing up

* fixed file server holding up message sender init.
fix joining closed groups.

* Clean

* Don't wait for file server to return tokens when establishing home connection.

* Disable join public chat prompt

Co-authored-by: Audric Ackermann <audric.bilb@gmail.com>
Co-authored-by: Ryan Tharp <neuro@interx.net>
Co-authored-by: Vince <vincent@loki.network>
Co-authored-by: Maxim Shishmarev <msgmaxim@gmail.com>
4 years ago
Vince 1fefe81f02
Merge pull request #772 from Bilb/fix-global-shortcut-reload-multiple-window
use local shortcut instead of global shortcut
4 years ago
Audric Ackermann ddf1ca78ec
use local shortcut instead of global shortcut
otherwise, ctrl+r is only caught bu the last loaded instance
4 years ago
Maxim Shishmarev 3f58dea035 Remove mixpanel 4 years ago
Maxim Shishmarev 02320334f0 Remove P2P 4 years ago
Ryan Tharp df120e8e5f fix my yarn conflict/resolve 4 years ago
Ryan Tharp 11359fc037
Merge branch 'clearnet' into fileproxy 4 years ago
Ryan Tharp 6293cd468b bump form-data to 3.0 4 years ago
Audric Ackermann 52e782d3fd use cross-env to make build of release easier 4 years ago
Vincent c26097554f settings optimisations 4 years ago
Vincent 2ede557a74 Modal additions incl. QR fixup and Seed View 4 years ago
Vincent 2caffa9289 Dependencies resorted and modal adjustments 4 years ago
Vincent 53555c0133 Fixed wrt review @ Audric 4 years ago
Vincent 66911d6f06 Connect to server modal semi-complete 4 years ago
Vincent 659d4412bd QR code completion 5 years ago
Audric Ackermann 148210c390 lock dompurify in yarn.lock 5 years ago
Mikunj 6817d82b00 Upgrade electron-notarize 5 years ago
Mikunj 9a3aa2a5bc upgraded electron-builder. 5 years ago
Mikunj 1250d93252 Added electron-notarize 5 years ago
Ryan Tharp 88b44390bf Desktop Analytics 5 years ago
Mikunj 500a88dbab Removed identicon.js
Updated profile image helper.
5 years ago
Mikunj a89358676c Update electron-context-menu.
Only allow copying QR code since saving doesn't work.
5 years ago
sachaaaaa c53633e367 Clearnet p2p with https (no verification yet) 5 years ago
Mikunj b8ef6c2cc6 Loki changes
Added friends section in search.

This is because contacts is now used in signal for something else and we don't want to clash meanings.

Styling fixes

Add dropdown options into mainheader

Updated styling

Restore StartNewConversation to the old ui style of loki messenger.

Fix friend search display.

Fix header expand animation.

Hooked up menu actions.

Linting.

More styling changes.

Fix tests.

Added back in the loki logo below the gutter.

Fix toast positioning.

Fix context menu showing incorrectly on virtual lists.

Added tabs.

Linting
5 years ago
Mikunj 61b862b021 Merge signal 1.24.1 5 years ago
Mikunj 8808100796 Merge signal-1.24.0
# Conflicts:
#	.github/PULL_REQUEST_TEMPLATE.md
#	background.html
#	config/default.json
#	config/production.json
#	js/models/conversations.js
#	js/models/messages.js
#	js/views/conversation_view.js
#	js/views/inbox_view.js
#	js/views/settings_view.js
#	main.js
#	package.json
#	test/index.html
#	ts/components/conversation/ContactName.tsx
#	yarn.lock
5 years ago
Mikunj 3152f92e30 Merge signal 1.23.2
# Conflicts:
#	app/sql.js
#	js/conversation_controller.js
#	package.json
5 years ago