Beaudan
dde63a552f
Fix bug with replayable errors, fix bug with set representation of swarmNodes not being handled properly
6 years ago
Beaudan
c83661ce3f
Added DNS resolution error for when lokinet isn't working, now keeping track of the nodes that have been queried and not trying them again
6 years ago
Beaudan
561d60cfd5
Sending messages now in a while loop like retrieving messages, added a failureCount and only delete node urls if they fail 3 times
6 years ago
Scott Nonnenberg
813924685e
Link Previews
6 years ago
Mikunj
1a15ec9c15
Merge commit signal/master into signal-1.20
6 years ago
Mikunj
e08a63d078
Merge development into lint
6 years ago
Beaudan
badaf40ca8
bit of readability and catching error (but just silencing for now)
6 years ago
Beaudan
bdbdf15469
Added timeouts for requests so they don't for ages. Changed swarmNodes to be a set to work property with merge, now removing contact swarmNodes if they timeout
6 years ago
Beaudan
24553e29e7
Made swarm requests ACTUALLY not wait for them all to finish and stop saving swarmNodes as DB column
6 years ago
Beaudan
7b1799c418
Big ol' hunk o' chunk. Now using random.snode to populate swarm lists, now making multiple requests from said lists and they are processed as they complete rather than waiting for all to resolve
6 years ago
Beaudan
37ba762312
First stuff for contacting specific nodes for each contact. Hard coded to hit the same bootstrap node for now plus doesn't handle unreachable nodes/errors well yet
6 years ago
Mikunj
6bd2d3962e
Linted files
6 years ago
Mikunj
1f10a73e4f
Updated strings.
6 years ago
Scott Nonnenberg
43e5d16020
Support for web socket communication with no signaling key
6 years ago
Scott Nonnenberg
985b1d6aa6
New staged attachments UI, multiple image attachments per message
6 years ago
Scott Nonnenberg
e4babdaef0
Updates to backup infrastructure
6 years ago
Scott Nonnenberg
47f834cf5c
Encrypt device name on account create, on first launch if needed
6 years ago
Mikunj
3690f4acda
Added timeout argument to WorkerInterface.
7 years ago
Mikunj
654b0dac84
Merge signal-master.
7 years ago
Beaudan
6113f13d3a
Rip the worker logic out of message_receiver and add the functionality for it to work with pow. Fix pow tests to work with those changes
7 years ago
Mikunj
f53bec38a5
Added password inputs on registration screen.
...
Fix case where db is deleted but password hash still remains which causes user to never register.
Allow password to have symbols and other characters.
Added more tests.
Moved passHash from config into the sqlite db.
We can do this because we assume if sql failed to initialise then the key provided was wrong and thus we can show the user the password page.
7 years ago
Mikunj
cb3599eea8
Removed IdentityKeyHeader.
7 years ago
sachaaaaa
8f22babfcc
More log level finetuning
7 years ago
Scott Nonnenberg
313d08344a
Request configuration sync on startup of new version
7 years ago
Mikunj
f7e9af4e3a
Reverse changes to contact.js
7 years ago
Mikunj
98c4b5d77b
Added editing own nickname.
...
Fix dark theme support.
Fix notification titles.
7 years ago
Mikunj
774c52a407
Added dynamic profile fetching in conversation.
...
Added setting profile when sending DataMessage.
7 years ago
Scott Nonnenberg
70eed938d9
Store arrayBuffers in database for remote identity keys
7 years ago
Scott Nonnenberg
79a861a870
Typing Indicators
7 years ago
Beaudan
b515fc41e7
Removed some repetetive logs, made the polling time a variable and lower the polling time and PoW difficulty if we are in debug mode
7 years ago
Mikunj
9fd822a7e3
Remove preKeys on friend request decline.
7 years ago
Mikunj
0dabce9e28
Remove preKeyBundle from message.
...
Always save preKeyBundles if we receive them.
Always override preKeys when saving.
7 years ago
sachaaaaa
ccb5ff79d4
Use correct log level in development mode and use log.debug() for some of the reoccurring logs
7 years ago
Beaudan
489ec8fc65
Heap of linting, eslint warning/error removal, and fixed a couple small bugs found along the way
...
Created new table to store the received message hashes. Checking this table when receiving messages to look for duplicates. Should be cleared of expired messages on app start and every hour after
Removed id which was not needed for seen messages. Refactored filter logic into function and found function name error
create unique index for contact prekeys (to allow using REPLACE)
Fixed lint stuff that merge brought back
7 years ago
Mikunj
4148628e70
Remove any unsent messages when app is started.
7 years ago
Mikunj
ece266fffd
Added showing pow icon.
7 years ago
Mikunj
4b4999ac35
Update to signal 1.18.0
7 years ago
Scott Nonnenberg
a780fa3bab
Fix reference to nonexistent variable
7 years ago
Scott Nonnenberg
ca4e2177b4
Fix reference to nonexistent variable
7 years ago
Scott Nonnenberg
cb50451011
Bump sender certificate timer after registration for re-link
7 years ago
Mikunj
4d3fb17e61
Merge branch 'sig-development' into merge/signal
7 years ago
sachaaaaa
5bcf63e592
Merge pull request #39 from BeaudanBrown/last-hash
...
Last hash
7 years ago
Beaudan
3aa135fdb4
Grabbing last hash from server response. only requesting messages after the lasthash. Keeping track of lasthash for array of nodes (currently hardcoded for one)
7 years ago
Mikunj
3389b1d457
Fixed the way preKeyBundle is stored in message.
7 years ago
Scott Nonnenberg
55c3d9371e
Bump sender certificate timer after registration for re-link
7 years ago
BeaudanBrown
bd0ce981dd
Merge pull request #34 from sachaaaaa/classify
...
ES2015 classes for LokiServer and FallBackSessionCipher
7 years ago
Mikunj
33ee45b819
Cleaned up SQL for getMessagesByConversation.
7 years ago
Mikunj
1150f0f915
Allow fetching conversation messages by a specific type.
7 years ago
sachaaaaa
ad1cf94526
ES2015 classes for LokiServer and FallBackSessionCipher
7 years ago
Mikunj
4b7a94c7d0
Merge branch 'development' into feature/friend-request
7 years ago
Beaudan
d6534e1bb8
Fixed bug with signed key sig not being saved
7 years ago
Mikunj
a80d6bb868
Merged branch correctly.
7 years ago
Mikunj
40fb7f726f
Fixed incorrect variable used.
7 years ago
BeaudanBrown
9ceb3c8ac0
Merge branch 'development' into message-polling
7 years ago
Scott Nonnenberg
6300256a3e
Gracefully shut down database operations before app exit
7 years ago
Scott Nonnenberg
c5f9fae444
A few small bugfixes
7 years ago
Beaudan
c59b196487
Now reading messages and adding them to conversations. Some cleaning of unreachable code. Modified the message data to be encoded as base64 string before sending to server
...
Sending our public key in header of message
Now attaching our key to the source field when sending messages, allows messages to be decrypted with the fallback cypher
Now polling the server for messages every 5 seconds
Sending the source device with messages
Added mock respond function to request to leave it that same as the websocket stuff. RetrieveMessages now just returns the result
Polling now continues if the server responds with an error. Returning only the result from sendMessage and retrieveMessages
Revert commenting of unreachable code
Refactored http logic into own file
Revert a change to websocket-resources
7 years ago
Mikunj
0a88f337d5
Merge branch 'sig-development' into merge/signal
7 years ago
Mikunj
5626cfe47d
Added FriendRequest message
7 years ago
Scott Nonnenberg
2d48daa7b6
Refine Sealed Sender behaviors
7 years ago
Mikunj
2fabd93fd6
Fix message sending
7 years ago
Mikunj
77602e3dbb
Moved contactPreKey and contactSignedPreKey to sql.
7 years ago
Mikunj
f589fdac5c
Merge signal changes into branch.
7 years ago
Beaudan
1ccf3b6b95
Added function to loki_message_api to do a single request call to storage server. Currently just gets called once when the application starts
7 years ago
Beaudan
519d372e63
Tiny url update to work with the storage server
7 years ago
Scott Nonnenberg
fb670ad6b9
Remove IndexedDB files after removing IndexedDB database
7 years ago
Scott Nonnenberg
9f647f00d8
A couple fixes for the data layer, legacy message upgrade/migrate
7 years ago
Scott Nonnenberg
41dd78c073
On fetch of profileAvatar, set it to convo's profileAvatar field
7 years ago
Scott Nonnenberg
6628b73911
Only show database log entries if task takes longer than 10ms
7 years ago
Scott Nonnenberg
1755e0adfd
Move all remaining stores to SQLCipher
7 years ago
sachaaaaa
4b9fcb98d4
Linting and other housekeeping stuff
7 years ago
Scott Nonnenberg
7aa9031c7f
Import: Be resilient to deletions from importObject
7 years ago
Beaudan
4598fd222a
Cleaned up newNonce stuff. Now doing target calculation with BigIntegers
7 years ago
Scott Nonnenberg
a7d78c0e9b
Sealed Sender support
...
https://signal.org/blog/sealed-sender/
7 years ago
Beaudan
d4180b3ca6
Some syntax tidying up, plus fixed bug with message data not being a uint8array after IPC message
7 years ago
Scott Nonnenberg
2060118e85
Remove messages/conversations/unprocessed IndexedDB object stores
7 years ago
Scott Nonnenberg
e39c999932
Import: Properly handle import with all empty non-convo stores
7 years ago
Scott Nonnenberg
1e562c8293
Properly handle avatar changes in group update messages
7 years ago
sachaaaaa
1cf8710127
Merge pull request #16 from sachaaaaa/friend_response
...
Handle prekeys in incoming friend request
7 years ago
sachaaaaa
9370e2b74a
Merge branch 'master' of https://github.com/signalapp/Signal-Desktop into development
...
* 'master' of https://github.com/signalapp/Signal-Desktop : (38 commits)
v1.17.0
v1.17.0-beta.4
Ensure that blue group avatars are preserved in dark theme
Android theme: Incoming quotes take color from containing message
Conversations have blue avatar backgrounds if no image provided
Fix lint errors
Add ca language
inboxView: Ensure Conversation exists for our own number
Ensure that file is not attached if we've filtered it
v1.17.0-beta.3
Localization updates
v1.16.3
Lint fixes
Lint fixes
Better handle large numbers of messages in cache on startup
Keep object stores after conversations migrate to SQLCipher
Longer timeout for orphaned file cleanup
Tests and increase consistency for isFileDangerous calls
Longer timeout for orphaned file cleanup
v1.17.0-beta.2
...
# Conflicts:
# background.html
# package.json
7 years ago
Beaudan
dfa8b59bc3
Using let and const properly, updated number to uint function, general cleaning
7 years ago
sachaaaaa
025d13a72b
Add keyId index for contact prekeys and allow retrieving prekeys for a specific pubkey and keyid
7 years ago
Beaudan
ee57c698d7
Client side proof of work attached to messages
...
Skeleton calcPoW function that prepares payload for hashingFunction to increment Uint8Array nonce
Util function for converting a number to its Uint8Array representation
Actually perform calculate PoW nonce for every message
Adding bytebuffer as dependency and updated package-lock
Move PoW to new file and execute it in child process
TODO: Move send message logic to callback after child process has finished calculating the PoW
Refactored nonce calculation to function to be awaited
More readable timestamp grab plus converted to seconds
Nonce is now returned as a base64 string and included in request header
Also converted timestamp and ttl to string when including them in the header
Added a couple comments and tidied up some nonce logic
7 years ago
sachaaaaa
886f47b8e7
Prekeys sending: first pass ( #12 )
...
* add 'recipient' attribute in prekey database to allow binding a prekey to a recipient pub key
* Attach a PreKeyBundleMessage to the ContentMessage in fallback encryption mode
* Skip generating 100 prekeys upon registration
* Store the signed key signature in database
7 years ago
Scott Nonnenberg
7532f397ea
Keep object stores after conversations migrate to SQLCipher
7 years ago
Scott Nonnenberg
8edfbdcee5
Longer timeout for orphaned file cleanup
7 years ago
Scott Nonnenberg
ca61c9cb85
Warnings for dangerous files
7 years ago
sachaaaaa
6fe70b9b85
Send outgoing messages as raw bytes (Uint8Array) and moved recipient & ttl to header
7 years ago
Scott Nonnenberg
f38410976d
Delete conversation external files on deletion
7 years ago
Scott Nonnenberg
2cfbfe477a
Better handle large numbers of messages in cache on startup
7 years ago
Scott Nonnenberg
a8e12d0771
Add user's avatar to the top left of the screen
7 years ago
Scott Nonnenberg
cd60bdd08a
Move conversations to SQLCipher
7 years ago
sachaaaaa
33ad509fbf
Merge branch 'master' of https://github.com/signalapp/Signal-Desktop into development
...
# Conflicts:
# _locales/ar/messages.json
# _locales/es_419/messages.json
# _locales/he/messages.json
# _locales/hi/messages.json
# _locales/hr/messages.json
# _locales/kn/messages.json
# _locales/ko/messages.json
# _locales/mk/messages.json
# _locales/sr/messages.json
# _locales/uk/messages.json
# _locales/vi/messages.json
# package.json
7 years ago
Scott Nonnenberg
d0c4152d99
backup.js: Remove references to nonexistent i18n strings
7 years ago
sachaaaaa
a6b4215b1f
changed sendMessage request from PUT to POST
7 years ago
sachaaaaa
8bb7185c7a
make loki_message_api::sendMessage use async/await
7 years ago
sachaaaaa
bb65115d7d
Ensure the unique object id is stored in the object to facilitate deleting it later.
7 years ago
sachaaaaa
2f562ce9e1
Change contact prekeys in db to allow multiple entries for each contact
7 years ago
sachaaaaa
0832806bd9
wip: added helper to create mock contacts, almost got a session working
7 years ago
sachaaaaa
258a89bc21
create contactPreKeys and contactSignedPreKeys in database, with load/store helpers (rerun migrations required)
7 years ago
sachaaaaa
e3cbf1caeb
rename IndexedDB database to 'loki-messenger'
7 years ago
sachaaaaa
b84ff76faf
Fix error handling when sending message + clean up in loki_message_api
7 years ago
sachaaaaa
8ada6ce8ad
serialize message as base64
7 years ago
sachaaaaa
1e14022e2f
Add skeleton for Loki Message API. Wrap data in json (for now?)
7 years ago
sachaaaaa
1866aed432
Accomodate for upcoming signature in websocket connection header
7 years ago
sachaaaaa
187424f84a
Change HTTP header from X-Signal-Agent to X-Loki-Messenger-Agent.
7 years ago
Scott Nonnenberg
57d13dad57
data/removeMessage: no need for additional model instantiation
7 years ago
Scott Nonnenberg
02fbea96c0
Move base64 conversions off of the main thread
7 years ago
Scott Nonnenberg
911bc63c67
Move all arrayBuffer<->base64 functions to be async
7 years ago
Scott Nonnenberg
9f920aa35b
Re-enable orphaned attachment cleanup
7 years ago
Scott Nonnenberg
fedfbed304
Copy quoted message contents into quote on receipt
...
Also:
- visually distinguish any reference we couldn't verify on receipt
- show toast on quote click if we can't scroll to message
- toast visuals redesigned to match rest of app
7 years ago
Scott Nonnenberg
516a729a45
Additional logging for sql commands in debug mode
7 years ago
Scott Nonnenberg
7983300f4a
Use base64 strings for incoming message cache instead of binary
7 years ago
Scott Nonnenberg
8c8475076b
Data layer: return null if id not in database, not empty model
7 years ago
Scott Nonnenberg
c88df69094
New SQL indices and query tweaks to eliminate table scans
...
Also: New logging on client side to track performance of db queries
7 years ago
Scott Nonnenberg
e086d521f1
Increase the timeout for database updates
7 years ago
Scott Nonnenberg
727925a266
Clean up old messages, better handle errors from sending
7 years ago
Scott Nonnenberg
6e193456f9
Eliminate orphaned external message files on startup
...
Attachments, visual attachment thumbnails, video attachment screenshots
Quote thumbnails
Contact avatars
7 years ago
Scott Nonnenberg
44dec45995
Ensure that all messages in cache are migrated properly
7 years ago
Scott Nonnenberg
a01db40e27
Ensure that a SQL command timeout results in an error
7 years ago
Scott Nonnenberg
22613c8cc4
Set disappearing check timer reliably - on all message saves
7 years ago
Scott Nonnenberg
3961778e53
Fixes for Chrome app import in this new SQLCipher world
7 years ago
Scott Nonnenberg
1d7987108b
Show and log progress during the SQLCipher migration
7 years ago
Scott Nonnenberg
b1c6a5fe19
When updating message schema pre-SQLCipher, use legacy save
7 years ago
Scott Nonnenberg
0d13d437fe
Delete before forced bulk insert to fix broken migrations
7 years ago
Scott Nonnenberg
3105b77475
Migrate to SQLCipher for messages/cache
...
Quite a few other fixes, including:
- Sending to contact with no avatar yet (not synced from mobile)
- Left pane doesn't update quickly or at all on new message
- Left pane doesn't show sent or error status
Also:
- Contributing.md: Ensure set of linux dev dependencies is complete
7 years ago
Scott Nonnenberg
02675312c5
Introduce mandatary migration on startup, to minimum version
7 years ago
Scott Nonnenberg
f39a96bc76
Move to centralized message/cache data layer
...
Also, ensure that conversation.messageCollection has nothing in it
unless it has an associated ConversationView.
7 years ago
Scott Nonnenberg
34231168a7
On message delete, ensure that all external files are deleted
7 years ago
Scott Nonnenberg
573a26021b
file_input_view: Use makeVideoThumbnail on attach of video
7 years ago
Scott Nonnenberg
5933a34a18
Use window.log in browser context, turn on console eslint rule
7 years ago
Scott Nonnenberg
cea38b7bc4
Log clear error if we fail to retrieve debug log upload key
7 years ago
Scott Nonnenberg
2ef2235317
Show error if debug log upload fails
7 years ago
Scott Nonnenberg
4ca674edb2
Remove User-Agent from form to upload debug log
7 years ago
Scott Nonnenberg
b159a8d7c7
Update the user agent for debug log requests
7 years ago
Scott Nonnenberg
675e34fc8d
New React component: ConversationListItem, installed in left pane
...
When collecting a conversation's last message, we grab that message's
status as well (if outgoing) and show it.
7 years ago
Scott Nonnenberg
3c69886320
Finish new Message component, integrate into application
...
Also:
- New schema version 8 with video/image thumbnails, screenshots, sizes
- Upgrade messages not at current schema version when loading messages
to show in conversation
- New MessageDetail react component
- New ConversationHeader react component
7 years ago
Scott Nonnenberg
dc11db92f9
New React component: Message
...
Also: Use react to render contects on the 'show group members' screen
7 years ago
Scott Nonnenberg
ad4387803b
New media permission, show dialog when not enabled for voice msg
...
UI now in separate renderer:
- the permissions popup
- settings dialog
- debug log dialog
- about window
Couple bug fixes:
- About Window: Fix 'escape' to close window
- Remove outdated dist/copy tasks from Gruntfile
Eslintified settings_view.js
7 years ago
Scott Nonnenberg
125c3fafa8
Idle detector: Fix bug preventing it from ever turning off ( #2487 )
7 years ago
Scott Nonnenberg
8eeaad8e18
Remove unused export/import functionality
7 years ago
Scott Nonnenberg
f3bd0cf903
Refactor api.js into web_api, which encapsulates all web access
7 years ago
Scott Nonnenberg
34f423b52c
Remove unused code; move signal.js to js/modules for eslint
...
(noticed as I was doing this that signal.js doesn't get eslint coverage)
7 years ago
Scott Nonnenberg
e2d044e02b
Filter file scheme; disable http, https and ftp entirely
7 years ago
Scott Nonnenberg
80b069e9b6
Move phone number format/parse into ts/types/PhoneNumber
7 years ago
Scott Nonnenberg
aa13a2c6f7
Parse phone numbers into e164 as part of schema upgrade
7 years ago
Scott Nonnenberg
d2293d9592
parseAndWriteAvatar: Do shallow copy before omit() call
...
Otherwise, we get all prototype props/functions, which we can't save in IndexedDB
7 years ago
Daniel Gasienica
3bf8a8966a
Notification improvements
...
- Remove on read, on focus, and on exit.
- Show multi-message notifications like '5 new messages'.
7 years ago
Daniel Gasienica
16bc1d34c6
Message schema 6: Change classification of media and documents
...
For an easier implementation, we change our original definition of
`initializeAttachmentMetadata`. This means we have to re-run it marked as
version 6 and mark schema version 5 as deprecated as its definition has changed.
7 years ago
Daniel Gasienica
101041f106
Derive `Message.CURRENT_SCHEMA_VERSION`
7 years ago