Commit Graph

75 Commits (adf0d03d35d5475dd76c149a7056df8350f33b50)

Author SHA1 Message Date
Maxim Shishmarev 27859b13aa Added an option to use v3/lsrpc endpoint for more compact (base64) file reponses 5 years ago
Audric Ackermann 4c91d977ca
move token and submit challenge call to onion request 5 years ago
Audric Ackermann c12c3b5f64
move stub of integration tests to typescript 5 years ago
Mikunj Varsani 2d0c3eb896
Merge branch 'clearnet' into message-sender 5 years ago
Ryan Tharp 9e4e524807 lint 5 years ago
Mikunj 2f5fd5d835 Revert loki modules to commonjs export 5 years ago
Mikunj 1dad49057b Implement MessageSender 5 years ago
Audric Ackermann fa853538d0
LINT after prettier upgrade 5 years ago
Ryan Tharp 06fb96ab07 lint 5 years ago
Ryan Tharp 51cd3bbe3b more dead code cleanup 5 years ago
Ryan Tharp ef92602615 dead code cleanup 5 years ago
Ryan Tharp b8fb24853d move out clock stuff, validOpenGroupServer() checks for lsrpc/pubkey and make private, findOrCreateServer sets pubkeys (enabled OR) if we have one 5 years ago
Ryan Tharp 40ebc508fc only show devs the token 5 years ago
Ryan Tharp 3553edcefc
lint 5 years ago
Ryan Tharp b517ad5286
put integration code under guard 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
Ryan Tharp e66e30bb0b URL for lint 5 years ago
Ryan Tharp 2d76b1eda9 .loki support improvement 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
Ryan Tharp eb263a9ee7 open() 5 years ago
Ryan Tharp 90de43e6ff refactor out validServer() 5 years ago
Ryan Tharp 8767a57ddd actually validate URL before starting up a bunch of timers 5 years ago
Ryan Tharp 1c02489c2f improve context for log message 5 years ago
Ryan Tharp b100205730 fix time includes, unregisterChannel use findIndex 5 years ago
Ryan Tharp 03efa0634b add back in time functions 5 years ago
Ryan Tharp facae157fe actually move public chat specific functions into this class (isolating the file server classes) 5 years ago
sachaaaaa dc6d3b5ca2 Add LokiPublicChatAPI (extends LokiAppDotNetAPI) 6 years ago
sachaaaaa 33ea259d45 Rename file 6 years ago
sachaaaaa fc00373897 Change LokiPublicChatAPI to LokiAppDotNetAPI, add annotations getter and setter 6 years ago
Mikunj 3152637cdc Fix more check on deletion. 6 years ago
Ryan Tharp ca5275b410 better guard 6 years ago
Ryan Tharp e6d22aab19 pass serverId back to the server 6 years ago
Mikunj e6d62cb22c Review changes.
Increase mod time to 30 seconds.
6 years ago
Mikunj 0b898612d9 Linting. 6 years ago
Mikunj 0883b1b650 Updated styles.
Merge commit clearnet into mod-badges
6 years ago
Beaudan Campbell-Brown ec5a69f1cf
Merge pull request #489 from msgmaxim/replies
Enable quotes in public chats
6 years ago
Beaudan Brown 72b3d02b52 Poll for moderators, store them on the conversation and use the list to determine our own mod status 6 years ago
Beaudan Brown 97746307f0 Make sure we are always updating the last deleted id 6 years ago
Maxim Shishmarev 5cf63af3a3 Enable quotes in public chats 6 years ago
Beaudan Brown 9beea2cbd3 Enforce curlies completely and lint with new settings 6 years ago
Beaudan Brown 6f995d6a96 Resolve linter issues 6 years ago
Beaudan Brown f9ca6e4cf2 Merge branch 'publicchat-config' of https://github.com/neuroscr/loki-messenger into neuroscr-publicchat-config 6 years ago
Beaudan Brown 0c870d04e3 Stop polling when leaving public chat, only grab the most recent 100 messages on first poll 6 years ago
Ryan Tharp 220f0aa9f5 handle empty servers better 6 years ago
Ryan Tharp eb3d22f2b0 remove unneeded comment 6 years ago
Ryan Tharp c97f26465c set correct name on conversation 6 years ago
Ryan Tharp 6d1c9700b1 this.stop guard on channelAPI 6 years ago
Ryan Tharp e382afdf91 make timers stoppable, delete throw parameter, pollForChannel() pattern update 6 years ago
Ryan Tharp f093490bec lint plus constant fix 6 years ago
Ryan Tharp 2ca23db141 Merge branch 'use-user-obj' of https://github.com/neuroscr/loki-messenger into use-user-obj 6 years ago