Ryan Tharp
3553edcefc
lint
5 years ago
Ryan Tharp
70c4b9b3c7
lint
5 years ago
Ryan Tharp
b517ad5286
put integration code under guard
5 years ago
Ryan Tharp
1ee2088343
Fix integration tests slipping into release
...
Per Mikunj
5 years ago
Mikunj Varsani
24a3e05154
Revert "Revert "Clean up unused dependencies.""
5 years ago
Vince
5ff7476359
Revert "Clean up unused dependencies."
5 years ago
Vince
6d591d956d
Merge pull request #1033 from Mikunj/package-cleanup
...
Clean up unused dependencies.
5 years ago
Ryan Tharp
90d2bbb338
refactor refreshRandomPool into small functions, exception clean up
5 years ago
Maxim Shishmarev
804b4e54ac
Merge pull request #1041 from msgmaxim/lns
...
API implementation for LNS
5 years ago
Maxim Shishmarev
932ea23ceb
API implementation for LNS
5 years ago
Ryan Tharp
9ade8cbb1e
using undefined instead of false
5 years ago
Ryan Tharp
55acf4c24f
make log less confusing
5 years ago
Ryan Tharp
62169e74f6
clear refreshRandomPoolPromise lock so you can refresh your randomPool, handle edge case if not enough snodes in randomPool for guards
5 years ago
Ryan Tharp
c5573cc422
handle edgecase where there's less than 2 snodes in the randomPool (and it wouldn't trigger a refresh), log style, better warning if sendToProxy returns false
5 years ago
Ryan Tharp
a2b1c2e8f6
lint
5 years ago
Ryan Tharp
4384229b4c
log when _retrieveNextMessages's call to lokiRpc fails
5 years ago
Ryan Tharp
2a7ebe6696
don't say it's sent when it's not
5 years ago
Ryan Tharp
4c870d4b74
improve loki tld host checking, fix proxyFetch calling sendToProxy so tokens can be fetched
5 years ago
Mikunj
b16da2c5f5
Linting
5 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.
5 years ago
Mikunj
828444aadc
Linting
5 years ago
Mikunj
e875ba2527
remove got.
...
Fix session IDs not being redacted in logs.
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
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
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
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
Vincent
d8a12aab0f
conv tinkering
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
Ryan Tharp
57b2840ed8
serverRequest: fix retry, fix note
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
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
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
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
Vincent
9a6aafe99c
Pull from clearnet
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
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
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
Vincent
ab414ca10e
Microphone
5 years ago
Audric Ackermann
370467a127
Merge pull request #878 from Bilb/group-profile-image
...
Group profile image upload
5 years ago
Ryan Tharp
97393ef25d
fix message order when mix multidevice messages, improve error logging
5 years ago
Vincent
5d11ef1457
Header props
5 years ago
Ryan Tharp
0c43c511d7
Merge pull request #868 from neuroscr/tls-fix
...
Snode communication retries and logging improvement
5 years ago
Vincent
752ee8a614
Message conditional rendering
5 years ago
Vincent
1689bc617e
Message loading with redux
5 years ago
Mikunj Varsani
adbc791dcb
Merge pull request #877 from loki-project/group-sync
...
Closed group syncing
5 years ago
Vincent
bf5badda3b
Working conversation openning
5 years ago
Audric Ackermann
e0ff1755ac
lint
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
Vincent
ea4dc05009
Upgrade typescript, finding messaages
5 years ago
Audric Ackermann
6d5aed7de8
make upload of group picture work
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
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
Vincent
481315c100
Initiating new conversationVew
5 years ago
Vincent
7a7104dfa5
Roation fix of groupsettings chevron
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
ff10637a5a
separate update group name and group members dialog
...
(add and remove members are separated)
5 years ago
Mikunj Varsani
8ffb1a0a10
Refactor session reset handling
5 years ago
Mikunj Varsani
10a4f13bc5
Linting
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
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
Ryan Tharp
dc14eb9ca7
open(), logging, stop() clears timers
5 years ago
Ryan Tharp
eb263a9ee7
open()
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
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
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
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
Mikunj Varsani
c37650c45d
Don't wait for file server to return tokens when establishing home connection.
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
2c4facc694
Merge branch 'clearnet' of https://github.com/loki-project/loki-messenger into tls-fix
5 years ago
Vincent
b341ceaf76
Closed group joining completed w/o backend
5 years ago
Ryan Tharp
3abb691e2c
lint
5 years ago
Ryan Tharp
90de43e6ff
refactor out validServer()
5 years ago
Vincent
4fd2126fbe
Fileserver update
5 years ago
Ryan Tharp
8767a57ddd
actually validate URL before starting up a bunch of timers
5 years ago
Ryan Tharp
739ac4ce4e
include useful info on error
5 years ago
Ryan Tharp
c1cea3ca04
turn off snode proxy logging
5 years ago
Ryan Tharp
d7a1fbab22
make sure TLS is forced on open groups, improve serverRequest error message
5 years ago
Ryan Tharp
3a0b3dddfd
lint
5 years ago
Ryan Tharp
e6ab3d55ae
fix querystring in file-proxy
5 years ago
Ryan Tharp
569485f42a
put back seemingly now required process.env.NODE_TLS_REJECT_UNAUTHORIZED
5 years ago
Ryan Tharp
c864f00697
lint
5 years ago
Ryan Tharp
3abfd7833c
fix typo
5 years ago
Ryan Tharp
058d294eb0
better error checking
5 years ago
Ryan Tharp
d69a0a9fd4
lint
5 years ago
Ryan Tharp
aee63c3eae
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)
5 years ago
Ryan Tharp
3964e9acf0
Merge branch 'clearnet' into tls-fix
5 years ago
Ryan Tharp
1c7067a957
Merge pull request #774 from neuroscr/groupavatar
...
Token handling over snodeProxy
5 years ago
Vince
5bbd136493
Merge pull request #758 from neuroscr/version-check
...
Version check, de-signal.org-ification
5 years ago
Ryan Tharp
18065c101b
minor refactor
5 years ago
Ryan Tharp
daa21c1265
Merge branch 'clearnet' of https://github.com/loki-project/loki-messenger into groupavatar
5 years ago
Ryan Tharp
3d70a6dc66
make sure token comms are done over fileProxy, other notes, logging adjustment
5 years ago
Maxim Shishmarev
3f58dea035
Remove mixpanel
5 years ago
Ryan Tharp
24b37b93c6
add .loki to have a self-signed cert
5 years ago
Ryan Tharp
615a41fa21
Merge branch 'clearnet' into tls-fix
5 years ago
Vincent
9dcc851ebd
Updated all icon references
5 years ago
Maxim Shishmarev
02320334f0
Remove P2P
5 years ago
Ryan Tharp
19b007696c
address missing comma for lint
5 years ago
Ryan Tharp
646c3b2f26
disable unauthorization rejection when making https requests limited to lokiRpc
5 years ago
Ryan Tharp
3797a2169c
add skipToken to establishConnection options, smuggle out secureRpcPubKey
5 years ago
Maxim Shishmarev
3418fff2d3
Merge pull request #749 from neuroscr/rss-proxy
...
pull RSS through file proxy
5 years ago
Maxim Shishmarev
d910633422
Merge pull request #746 from msgmaxim/no-autojoin-loki-chats
...
Disable auto-joining default loki open groups
5 years ago
Maxim Shishmarev
cf10a19b34
Disable auto-joining default loki open groups
5 years ago
Vince
310038ec31
Merge pull request #748 from loki-project/brand-redesign
...
Brand redesign
5 years ago
Ryan Tharp
8fc5b6769a
pull RSS through file proxy
5 years ago
Audric Ackermann
d68aeb947e
Merge branch 'clearnet' into brand-redesign
5 years ago
Audric Ackermann
7867f4dceb
Merge branch 'clearnet' into brand-redesign
5 years ago
Maxim Shishmarev
b7e93ab597
Support sealed sender for friend requests
5 years ago
Maxim Shishmarev
b405b150cc
Sealed sender support
5 years ago
Maxim Shishmarev
dc0571137c
Merge pull request #734 from neuroscr/fileproxy
...
ephemeral layering file proxy
5 years ago
Audric Ackermann
a39881ff1a
Display subscriber count for open groups ( #741 )
...
Display subscriber count for open groups
5 years ago
Ryan Tharp
758a936e8f
include IV in server response
5 years ago
Ryan Tharp
ab83f89142
_sendToProxy pass headers/handle response refactor, lint
5 years ago
Ryan Tharp
f2233c20c7
add missing semicolon
5 years ago
Ryan Tharp
11359fc037
Merge branch 'clearnet' into fileproxy
5 years ago
Vincent
4a7e2dece7
Password lock screen and delete data screen
5 years ago
Audric Ackermann
c92d22fece
allow space inside a display name but not at start or end
5 years ago
Maxim Shishmarev
c1a55848b8
Merge pull request #739 from msgmaxim/secondary-device-fix
...
Fix not showing messages from secondary devices
5 years ago
Maxim Shishmarev
8ce066b802
Display subscriber count for open chats
5 years ago
Vincent
4d690768a6
Scrolling button updated and animations to modals
5 years ago
Ryan Tharp
5ced9a2b85
initial refactor of feaure flag detection statements in serverRequest()
5 years ago
Ryan Tharp
41e35a1647
support file uploads on file proxy, fix _sendToProxy calling
5 years ago
Ryan Tharp
f8252ec1ec
decrypt file server response, remove debug, handle crypt before _sendToProxy, improve json parsing failure logging
5 years ago
Ryan Tharp
e51a030dc9
include log
5 years ago
Maxim Shishmarev
7cc2f5d707
Fix not showing messages from secondary devices
5 years ago
Audric Ackermann
293eca0509
Merge branch 'brand-redesign' into clearnet
5 years ago
Audric Ackermann
d3f994d9bf
Merge branch 'clearnet' of github.com:loki-project/loki-messenger into clearnet
5 years ago
Vince
5d705312cc
Merge branch 'brand-redesign' into brand-redesign
5 years ago
Audric Ackermann
37cbd3d2c0
fix SessionSettings not found as does not exist
5 years ago
Ryan Tharp
ce2e85cd38
send ephermal pubkey not privkey, file_proxy JSON encode body
5 years ago
Ryan Tharp
6ab16d7e56
fix case so function exists, give a warning when initialiseRandomPool or getSwarmNodes fail
5 years ago
Ryan Tharp
4198f30b99
Label errors better, make _sendToProxy use ephermal layering
5 years ago
Ryan Tharp
3969817a0a
lint
...
lint
lint
5 years ago
Ryan Tharp
1a785a2435
fix getSwarmNodes exception handler, lint
5 years ago
Ryan Tharp
9e10d11e9d
hardcode file server pub key, pass it to _server
5 years ago
Vincent
a1a582d7ea
Session branding fixes
5 years ago
Vincent
5fbbdc33c3
Signal branding
5 years ago
Ryan Tharp
b0561f144b
if you have invalid token, wait for good token
5 years ago
Audric Ackermann
25344685a2
merge
5 years ago
Vincent
010cf045cb
optimisation of ternary & binary expr.
5 years ago
Vincent
e065cc404f
Password set, change and remove complete
5 years ago
Audric Ackermann
67262c7eaa
lint after merge and fix startup of app
5 years ago
Audric Ackermann
43956709ad
include the channel settings panel on right of conversation
5 years ago
Audric Ackermann
9b8ad976e3
remove not used AddServerDialog -> now on chanel section
5 years ago
Vincent
2b7af04587
Message selection fixed and optimised for speed
5 years ago
Vincent
8c9854dd90
Settings onClick functionality
5 years ago
Vince
2cf152b882
Update signal.js
...
Rmv old deps
5 years ago
Vincent
74fd0159eb
Fix conflicts
5 years ago
Vincent
2d01275ede
QR Code responds to theme changes
5 years ago
Vincent
2ede557a74
Modal additions incl. QR fixup and Seed View
5 years ago
Vincent
2caffa9289
Dependencies resorted and modal adjustments
5 years ago
Audric Ackermann
b09ca5c751
remove not used headerview
5 years ago
Vincent
8074756dc2
Infinte duration toasts
5 years ago
Vincent
6ee5d041fb
Finishing up some modals
5 years ago
Vincent
648cc2339c
Working with deps
5 years ago
Vincent
659d4412bd
QR code completion
5 years ago
Vincent
2419272608
Updated React dialogs to SessionModals
5 years ago
Vincent
228e4ca81e
Adding session settings to utilise toggles
5 years ago
Vincent
8aac656107
Modals finished. Need to xfer all to React
5 years ago
Vincent
9afb8b4d5e
Major rework of context menus
5 years ago
Maxim Shishmarev
a195c98061
Add a feature flag for snode proxy
5 years ago
Vincent
e9d543fe4a
Dropdown generalisation and simplification
5 years ago
Vincent
12011a30d4
Inital dropdown, modal and toggle
5 years ago
Vince
9cd27abf31
Merge branch 'brand-redesign' into brand-redesign
5 years ago
Vincent
4d463c659c
Filesize toast amend
5 years ago
Audric Ackermann
cc97d9284b
add first chunck of our SessionRegistrationView
5 years ago
Ryan Tharp
c9c1567e80
fix token refresh, log error when failing to send a message
5 years ago
Ryan Tharp
1c02489c2f
improve context for log message
5 years ago
Ryan Tharp
7a97736751
remove unused manageModerators dialog
5 years ago
Ryan Tharp
88b62210e7
array/meta guard, getModerators(), addModerators()/removeModerators()
5 years ago
Ryan Tharp
5730a88c18
add/remove moderator modal dialogs
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
Vincent
533ec4eedc
Fixed syntax & linted
5 years ago
vincentbavitz
449eb8536b
System clock ( #677 )
...
* Show toast when client clock is out of sync
* Fixed syntactical misarrangements
* Simplify getServerTime method
* Futher simplify getServerTime method
* Update js/modules/loki_app_dot_net_api.js
Co-Authored-By: Mikunj Varsani <Mikunj@users.noreply.github.com>
* Update js/modules/loki_app_dot_net_api.js
Co-Authored-By: Mikunj Varsani <Mikunj@users.noreply.github.com>
* Update loki_app_dot_net_api.js
Use cached timestamp value
* Update preload.js
Update some values to function scope
* Updated syntax
* Semifinal changes
* Improved efficiency and eliminated need for restart on clock update
* Remove await and immediately invoked function
5 years ago
Ryan Tharp
91a814b20a
remove avatar annotation if not needed, lint
5 years ago
Ryan Tharp
bb66515cce
we now expose LokiAppDotNetServerAPI, move getPrivateKey into chatAPI, deleteMessage clean up forEach with filter, add channel setting functions, update moderators endpoint/use primary device
5 years ago
Ryan Tharp
facae157fe
actually move public chat specific functions into this class (isolating the file server classes)
5 years ago
Ryan Tharp
a7bb17b977
remove _adnApi and expect LokiAppDotNetAPI to be like the serverAPI
5 years ago
Ryan Tharp
3678b49787
abort trying response if failed
5 years ago
Ryan Tharp
a3abf3b14a
Merge pull request #661 from sachaaaaa/encrypted_avatar
...
Encrypted profile pic
5 years ago
sachaaaaa
4da7243945
simplify tiny public chat snippet
5 years ago
sachaaaaa
a29f0a4120
encrypted pictures for public chats
5 years ago
Maxim Shishmarev
1020f54b60
Merge pull request #662 from Bilb/655-clickable-profile
...
clickable profile
5 years ago
vincentbavitz
2e83881373
Merge pull request #652 from vincentbavitz/public-ban
...
Public ban
5 years ago
Audric Ackermann
9992a3da1d
Add a showUserDetails modal to display user's details
...
Relates #655
6 years ago
sachaaaaa
666c640634
lint
6 years ago
sachaaaaa
03e0a5976f
Fix DEVICE_MAPPING_USER_ANNOTATION_TYPE
6 years ago
Beaudan Brown
43a91ab672
Linted
6 years ago
Beaudan Brown
bee5a89f14
Show toast on user ban
6 years ago
Maxim Shishmarev
2ab0d084f1
Merge pull request #645 from msgmaxim/group-invites
...
Public chat invitations
6 years ago
Beaudan Brown
2bbc1ecf63
Make ban user; handle server request
6 years ago
Ryan Tharp
6cde9aa263
Merge pull request #638 from neuroscr/multidevice-publicchat
...
Public Chat - home server refactor / read public chat avatars from home server
6 years ago
Maxim Shishmarev
a5fce17d8c
public chat invitations
6 years ago
Ryan Tharp
065f2ca47f
setProfileName refactor, setHomeServer(), immediate detect if our ProfileName gets out of sync on the server
6 years ago
Ryan Tharp
a147afec12
add note
6 years ago
Ryan Tharp
bb9912dcc5
update some notes
6 years ago
Ryan Tharp
7088411cff
fix where the avatar went
6 years ago
Ryan Tharp
6bd1227189
add back missing avatarAnnotation for now, move setLastRetrievedMessage to after multidevice processing, make getListOfMembers async, subscribe to the channel when it registers, partChannel(), getSubscribers(), fix avatar message object placement
6 years ago
sachaaaaa
db0068b429
Sending and handling of special UNPAIRING_REQUEST message
6 years ago
Ryan Tharp
106a42306e
Merge branch 'clearnet' of https://github.com/loki-project/loki-messenger into multidevice-publicchat
6 years ago
Ryan Tharp
3508658e00
pull avatar out of annotation, put it in profile
6 years ago
Maxim Shishmarev
8cd8c8d4f9
Merge pull request #610 from msgmaxim/profile-pictures
...
Enable custom profile pictures
6 years ago
Maxim Shishmarev
02cf9d58c8
Explicitly set server id for avatars to null
6 years ago
Ryan Tharp
207e3d022f
Merge branch 'profile-pictures' of https://github.com/msgmaxim/loki-messenger into multidevice-publicchat
6 years ago
Ryan Tharp
0c8873b5a2
constant naming clean up, remove slavePrimaryMap from LokiAppDotNetAPI, request user_annotations, home server support, use new verifyPrimaryPubKeys return format, avatar stubs
6 years ago
Ryan Tharp
85185714ae
export a factory, LokiHomeServerInstance/LokiFileServerInstance split, verifyUserObjectDeviceMap change return to object, remove getDeviceMappingForUsers because too small, avatar map, adjust constant format
6 years ago
Maxim Shishmarev
5a08ac9cc1
Use avatar specific endpoint
6 years ago
sachaaaaa
6471c3698f
Fix errors showing up from invalid public chats
6 years ago
Maxim Shishmarev
4dd314c18f
Enable profile pictures
6 years ago
Beaudan Brown
685ada5cc5
Merge branch 'clearnet' into prep-merge
6 years ago
Ryan Tharp
c40fe1dc79
reduce branching depth, prefer reduce over forEach, add comments, lint, dead code removal
6 years ago
Ryan Tharp
d1526b9997
diable checkSigs, use libloki.crypto.validateAuthorisation, lint, remove dead code
6 years ago
Beaudan Brown
ac762d43d5
Reduce indentation and simplify code by using existing verification functions
6 years ago
Ryan Tharp
cad9a89636
verifyUserObjectDeviceMap removed notFoundHandler from prototype/reduced branching depth/returns users pub keys not found
6 years ago
Ryan Tharp
60cefc7fe1
improve comments
6 years ago
sachaaaaa
2b6bd7e04a
Merge pull request #612 from sachaaaaa/timeout_fix
...
Fix recurring memory leak in mentions
6 years ago
Ryan Tharp
0b05753fec
use renamed getUsers
6 years ago
Ryan Tharp
1a59ef5f92
rename getUsersAnnotations => getUsers
6 years ago
Ryan Tharp
eab53e158e
Merge branch 'multi-device' of https://github.com/loki-project/loki-messenger into multidevice-publicchat
6 years ago
sachaaaaa
c9e3757381
dial the logging down a notch
6 years ago
sachaaaaa
2c1375e42a
Fix recurring memory leak in mentions
6 years ago
Maxim Shishmarev
7c96990119
Correctly handle server errors in multi-deletion
6 years ago
Maxim Shishmarev
8677fb15a0
Select multiple messages and bulk deletion
6 years ago
Maxim Shishmarev
395daf3aba
Use Array.includes in place of Array.indexOf
6 years ago
Maxim Shishmarev
7c05939f55
Add group admins and the ability to remove members from private groups
6 years ago
Maxim Shishmarev
9f81f67460
Can leave private group chats
6 years ago
Maxim Shishmarev
cf18572049
Adding new group members; establishing sessions between non-friends
6 years ago
Maxim Shishmarev
0d19b708f9
Creating private group chats between friends
6 years ago
Beaudan Brown
d97eced37b
Merge branch 'clearnet' into multi-device
6 years ago
Beaudan Brown
a3635216db
Enable sending audio recordings
6 years ago
Beaudan Brown
221c6b53b1
Clean up a bit
6 years ago
Beaudan Brown
8cf90ae85d
Use message timestamp for empty messages
6 years ago
Beaudan Brown
638f1c0e6c
Bringing together all the stuff for attachments and link previews
6 years ago
Beaudan Brown
9114a3bc03
Annotation conversations
6 years ago
Beaudan Brown
f0c198c7b7
Split uploadData to public and private
6 years ago
Beaudan Campbell-Brown
ac80ef0d4e
Merge pull request #557 from BeaudanBrown/add-server
...
Add server
6 years ago
Beaudan Brown
c7a91686a8
Update proto id and use the server id as the attachmentpointer id
6 years ago
Beaudan Brown
4e85435bf7
Update attachment pipeline to upload and download from loki fileserver
6 years ago
Beaudan Brown
363cd81ccc
Hook up UI to all the server creation logic etc
6 years ago
Beaudan Brown
4e70b66131
Extract the async token grab from the server api constructor and put in the factory. Fix up the areas this affects
6 years ago
Beaudan Brown
5d2f7ddb20
Add messages needed for UI, bit of house work
6 years ago
Beaudan Brown
9ed3ec5dec
Fix linting
6 years ago
Beaudan Brown
399c54452e
Default user name to anonymouse if they don't have one set
6 years ago
Beaudan Brown
f9f7a799b5
Updating signature scheme to use hard coded fields
6 years ago
Ryan Tharp
d432e2a77b
verifyUserObjectDeviceMap() and refactor out verifyPrimaryPubKeys()
6 years ago
Ryan Tharp
7f433f3df0
move file server related functions into file server, make multidevice states global
6 years ago
Ryan Tharp
206d29b033
avoid no pubkey with guards, make sure primary and secondary authorization match
6 years ago
Ryan Tharp
9ba641c8c1
signature checking, hide your own message, addres potential race issues
6 years ago
Ryan Tharp
87474d48b5
fix async problem with receive forEach, implement most of the annotation processing for multidevice
6 years ago
Ryan Tharp
7b22806bf0
Merge branch 'multi-device' of https://github.com/loki-project/loki-messenger into multidevice-publicchat
6 years ago
sachaaaaa
1f3311bc5d
Save device mappings upon accepting friend request + various fixes
6 years ago
sachaaaaa
48ce9a7649
lint
6 years ago
sachaaaaa
03d0385427
Fix signatures being sent to file server as arraybuffer
6 years ago
sachaaaaa
73d90a5277
Merge pull request #537 from sachaaaaa/secondary_device_minimum_receiver
...
[multi-device] Start all the receivers only after the secondary registration is fini…
6 years ago
Ryan Tharp
468550cbdf
getDeviceMappingForUsers()
6 years ago
Ryan Tharp
ddde675ba8
stub out multidevice support, move token validation into server class
6 years ago
sachaaaaa
c38e145be7
lint
6 years ago
sachaaaaa
634d274ffc
Merge pull request #531 from sachaaaaa/remove_all_private_conv
...
[multi-device] Remove private convs only
6 years ago
sachaaaaa
cc04bee38a
Start all the receivers only after the secondary registration is finished
6 years ago
sachaaaaa
8ce21b13fe
Remove only private conversation during secondary registrations steps to keep public chats in db
6 years ago
sachaaaaa
de6e4e4920
Add updateOurDeviceMapping that wraps setOurDeviceMapping
6 years ago
sachaaaaa
5a8ab00a96
Rename pairing getters to specify secondary or primary. Add getGrantAuthForPrimary.
6 years ago
sachaaaaa
b63d8ec84f
Merge branch 'clearnet' into multi-device
...
* clearnet: (35 commits)
yarn lint
return early if signature is not a string
lint pass 2
lint pass 1
make sure versioning on write can't get out of sync
Update js/modules/loki_public_chat_api.js
Handle annotations omit correctly
fix typo CI found
refactor
pollOnceForMessages() move lastGot up, address Sacha's review
Update js/modules/loki_public_chat_api.js
address review
address reviews
Custom message rendering of mentions
fix method
separate out new/open, more lint/cleanup
separate out note to self
create window.mixpanel here
use window.mixpanel, remove eventEmitter
lint and remove unneeded params
...
6 years ago
sachaaaaa
7549c45716
yarn lint
6 years ago
sachaaaaa
a28c581666
return early if signature is not a string
6 years ago
sachaaaaa
a931b2491a
Merge branch 'clearnet' into PR_file_server
...
* clearnet:
lint pass 2
lint pass 1
make sure versioning on write can't get out of sync
Update js/modules/loki_public_chat_api.js
Handle annotations omit correctly
fix typo CI found
refactor
pollOnceForMessages() move lastGot up, address Sacha's review
Update js/modules/loki_public_chat_api.js
address reviews
Custom message rendering of mentions
lint and remove unneeded params
modernize annotations since we're making a backward-incomp change
sign and only show verified messages
# Conflicts:
# js/modules/loki_public_chat_api.js
6 years ago
sachaaaaa
035c48eb12
Merge pull request #517 from neuroscr/publicchat_signed
...
sign and only show verified public chat messages
6 years ago
Ryan Tharp
34b7117ff7
lint pass 2
6 years ago
Ryan Tharp
8bfb7f297d
lint pass 1
6 years ago
sachaaaaa
b13a4f3e56
Merge pull request #520 from msgmaxim/mentions2
...
Custom message rendering of mentions
6 years ago
Ryan Tharp
6ac6d656a4
make sure versioning on write can't get out of sync
6 years ago
Ryan Tharp
ab440a699f
Update js/modules/loki_public_chat_api.js
...
Co-Authored-By: sachaaaaa <40749766+sachaaaaa@users.noreply.github.com>
6 years ago
Ryan Tharp
a976388315
Handle annotations omit correctly
6 years ago
Ryan Tharp
b62801bc2a
fix typo CI found
6 years ago
Ryan Tharp
968ad9227c
refactor
...
pls forgive, using github editor for expedience, untested changes
6 years ago
Ryan Tharp
c8cf05558f
pollOnceForMessages() move lastGot up, address Sacha's review
6 years ago
Ryan Tharp
d85cd980c2
Update js/modules/loki_public_chat_api.js
...
oof
Co-Authored-By: sachaaaaa <40749766+sachaaaaa@users.noreply.github.com>
6 years ago
sachaaaaa
e2e2d1e845
address review
6 years ago
sachaaaaa
7756d4f0f3
Merge branch 'clearnet' into PR_file_server
...
* clearnet:
fix method
separate out new/open, more lint/cleanup
separate out note to self
create window.mixpanel here
use window.mixpanel, remove eventEmitter
allow mixpanel to be already set up elsewhere
Address review comments
Add missing file in tests
Add UI elements for searching and selecting members in a group chat
Desktop Analytics
Replaced value with a descriptive constant.
Add comment to fix up confusion.
Keep a cache of the last 5 fetched messages for public chat so we can use it to detect duplicate messages.
# Conflicts:
# js/background.js
# js/modules/loki_public_chat_api.js
6 years ago
Ryan Tharp
71fde0b9e6
Merge branch 'clearnet' into publicchat_signed
6 years ago
sachaaaaa
155a3b8f17
Merge pull request #512 from neuroscr/desktop-analytics
...
Desktop Analytics
6 years ago
sachaaaaa
a3d677819b
Merge pull request #508 from Mikunj/duplicate-message-fix
...
Public chat duplicate message fix
6 years ago
Maxim Shishmarev
687e9db77b
Custom message rendering of mentions
6 years ago
Ryan Tharp
3150a6ce11
separate out new/open, more lint/cleanup
6 years ago
Ryan Tharp
51eaa90823
use window.mixpanel, remove eventEmitter
6 years ago
Ryan Tharp
68186afba2
lint and remove unneeded params
6 years ago
sachaaaaa
3b450e28da
lint
6 years ago
sachaaaaa
f8e9e1d3bd
Remove rejected authorisation from database
6 years ago
sachaaaaa
e07f81c150
Add LokiFileServerAPI
6 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
Ryan Tharp
a97788c7d9
modernize annotations since we're making a backward-incomp change
6 years ago
Ryan Tharp
a0b52826e9
sign and only show verified messages
6 years ago
Maxim Shishmarev
1496a368e9
Add UI elements for searching and selecting members in a group chat
6 years ago
Ryan Tharp
88b44390bf
Desktop Analytics
6 years ago
sachaaaaa
0426d85e7a
Merge branch 'clearnet' into multi-device
...
* clearnet: (136 commits)
Fix more check on deletion.
Only shorten pubkeys if name is present
Shorten pubkeys in quotations too
better guard
pass serverId back to the server
Bump version.
Purge cache on failure.
Fix unnecessary link preview fetches.
Review changes. Increase mod time to 30 seconds.
Undo defaultPublicChatServer change,
Modified colour of dark mod badge
Linting.
Updated design
Show crown icon for moderators
Fix last hash all being NULL in database
Poll for moderators, store them on the conversation and use the list to determine our own mod status
Make sure we are always updating the last deleted id
Update ts/components/conversation/FriendRequest.md
Fix #355 Display timestamp for friend requests
Fix duplicate detection for sent messages in public chat
...
# Conflicts:
# app/sql.js
# js/background.js
# js/models/messages.js
# js/views/app_view.js
# libloki/crypto.js
# libtextsecure/message_receiver.js
6 years ago
Mikunj
75a527e828
Replaced value with a descriptive constant.
6 years ago
Mikunj
001d882273
Add comment to fix up confusion.
6 years ago
Mikunj
19b0dabe11
Keep a cache of the last 5 fetched messages for public chat so we can use it to detect duplicate messages.
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
sachaaaaa
d3c3184405
Search returns primary device when looking up secondary pub key
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
sachaaaaa
43976c6c43
Merge pull request #494 from sachaaaaa/fix_last_hash
...
Fix last hash all being NULL in database
6 years ago
Beaudan Campbell-Brown
ec5a69f1cf
Merge pull request #489 from msgmaxim/replies
...
Enable quotes in public chats
6 years ago
sachaaaaa
3beb6004db
Fix last hash all being NULL in database
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
sachaaaaa
b10835ffc7
Share contact upon authorising secondary device
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
Ryan Tharp
5b193b9e47
remove throw for now, squash ifs, some future avatar notes
6 years ago
Ryan Tharp
35d059eae5
was getting some weird errors, going to try this
6 years ago
Ryan Tharp
3f35170eae
Merge branch 'clearnet' into use-user-obj
6 years ago
Ryan Tharp
428a3b7077
add back conversationId
6 years ago
Beaudan Brown
da97d15891
Log when there are errors polling
6 years ago
Beaudan Brown
0dd180d4f4
Wrap polling function in try finally for safety, fix issue with empty array check and lint
6 years ago
Ryan Tharp
e25ed0aba3
move pubkey/name out of annotation into user object, read channel meta data from server, throw alert if delete fails, constant name clean up, store timers, Calls refreshModStatus/pollForChannel in cstr
6 years ago
Beaudan Brown
8f4b0a2088
Don't look
6 years ago
sachaaaaa
35b6182074
Clean up after account registration failure
6 years ago
Beaudan Campbell-Brown
43bd167965
Merge pull request #463 from loki-project/public-chat
...
Public chat
6 years ago
Beaudan Brown
cccf533abc
Save conversation after all messages are processed
6 years ago
Beaudan Brown
27976a053c
Save the last retrieved message for public chats on the conversation
6 years ago