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
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
Beaudan Brown
d97eced37b
Merge branch 'clearnet' into multi-device
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