Commit Graph

3215 Commits (468a92f861e2e7b7bfc3cff8df27bd47bda996d3)

Author SHA1 Message Date
Mikunj 1f10a73e4f Updated strings. 6 years ago
Mikunj b8aa60b95d Added loki icon. 6 years ago
Mikunj feb8af476a Refactored BlockedNumberController. 6 years ago
Scott Nonnenberg 74bbdb88a5 Lint fixes 6 years ago
Scott Nonnenberg 16a821645f Preserve scroll position on toggle emoji panel, add attachment 6 years ago
Scott Nonnenberg 0de54e125c Improve caption editor usability, new 'add attachment' affordance 6 years ago
Scott Nonnenberg ac1a6d197a Enable sending multiple images in one message 6 years ago
Mikunj e69999a790 Fix condition order. 6 years ago
Mikunj 7341471ce7 Fix up notification. 6 years ago
Mikunj 78c5962ff0 Fixed contact not being added after friend request is accepted. 6 years ago
Scott Nonnenberg 7db7a3ad44 Preserve scroll position when adding/removing staged quote 6 years ago
Mikunj 7aad9417c7 Added blocked number controller tests 6 years ago
Mikunj faeb319c58 Added profile model test. 6 years ago
Scott Nonnenberg b08c10a547 FileInputView: Event on attachment change to hide/show microphone 6 years ago
Scott Nonnenberg 43e5d16020 Support for web socket communication with no signaling key 6 years ago
Mikunj 924c51d5c7 Removed min and max clamping in code.
This should be done UI and Server side instead.
6 years ago
Mikunj 24455fc8b7 Updated TTL to use slider. 6 years ago
Mikunj 235dbb2176 Added display of message ttl in settings.
Fixed setting message ttl.
6 years ago
Mikunj 87113b6cc1 Added message ttl setting storage 6 years ago
sachaaaaa 61c4447ab0
Merge pull request #126 from Mikunj/friend-request-notification
Fix notification display after friend request is accepted.
6 years ago
Mikunj 4d1f4fcb4f Moved loki_protocol_store.js into libloki/storage.js 6 years ago
Mikunj a12ed61cc1 Fix notification display after friend request is accepted. 6 years ago
Mikunj 070d18b514 Updated function calls. 6 years ago
sachaaaaa 5eb0bc51a4
Merge pull request #119 from sachaaaaa/pow-metrics
PoW statistical measurements
6 years ago
sachaaaaa 8c01bea913 variables name consistency and remove superfluous initialisation 6 years ago
Scott Nonnenberg b816638dea Fix some of the notification avatar colors 6 years ago
Scott Nonnenberg dc9f9dabfd Ensure that caption is shown even for single-image message 6 years ago
Scott Nonnenberg c0be4718fc Update delivered_to for outgoing with earlier delivery receipts 6 years ago
Scott Nonnenberg f9ea7be61f Reintroduce single attachment limit 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
Herohtar a21d63e450 Make notification initials consistent with everything else (#3006)
Make notification initials consistent with Avatar component
6 years ago
Herohtar 0b60af1c84 Don't compare a numeric value with a string when using the identity operator (#2989)
Fix comparison for emoji injection at cursor location
6 years ago
sachaaaaa e3138f8fde add yarn pow-metrics 6 years ago
Mikunj cbb62f4a71 Added tsx files to grunt watch.
Fixed minor bug in conversation view.
6 years ago
Mikunj a0b814bf7c limit max message length to 2000 characters.
Set task time limit to 3 minutes.
6 years ago
Mikunj 3690f4acda Added timeout argument to WorkerInterface. 6 years ago
Mikunj 6bcb259919 Added PoW error. 6 years ago
sachaaaaa 27674513ba
Merge branch 'development' into signal-v1.19 6 years ago
Mikunj a2f12ca18e Added option to copy conversation public key. 6 years ago
Mikunj 654b0dac84 Merge signal-master. 6 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 6 years ago
Mikunj f98fe910d5 Fix friend request retry not working. 6 years ago
Mikunj f92cc6cbd4 Added menu option to view seed. 6 years ago
Mikunj 0491ceacf1 Added seed dialog.
Fixed issue where incorrect language was used to generate seed.
6 years ago
Scott Nonnenberg 3851bf351f Throttle typing events, fix profile logging, fix group typing 6 years ago
sachaaaaa a1255dd31e
Merge pull request #77 from Mikunj/password-protection
Password protection
6 years ago
sachaaaaa bcc81e41e4
Merge pull request #81 from Mikunj/ui/unread-icon
Added unread indicator in conversation section.
6 years ago
sachaaaaa 4a2c618803
Update js/views/inbox_view.js
Co-Authored-By: Mikunj <Mikunj@users.noreply.github.com>
6 years ago
Mikunj 2715e79268 Fix conversation status not being reset upon conversation messages deletion.
Fix incoming friend request not replacing old friend requests.
Fixed incorrect function name.
6 years ago
Mikunj 0cfabb5ffa Added unread indicator in conversations sections. 6 years ago
Mikunj 9e995bde6c Review fixes.
Updated tests.
6 years ago
sachaaaaa d8f4d1f313 Fixes to get production build working 6 years ago
Mikunj 0b87f13699 Added password dialog view. 6 years ago
Mikunj 26ba553e6a Added menu options to set, change and remove password. 6 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.
6 years ago
Mikunj 7a96b8446a Rename launcherView to passwordView. 6 years ago
Mikunj 6620244d03 Show main window on correct password; 6 years ago
Mikunj 65015063d2 Add css styling.
Added input and button.
6 years ago
Mikunj 6b9764e6c6 Added launcher view. 6 years ago
sachaaaaa 05c18d42db
Merge pull request #66 from sachaaaaa/session_reset
Handle session reset, Loki style
6 years ago
sachaaaaa 12d69244e9
Update js/signal_protocol_store.js
Co-Authored-By: BeaudanBrown <beau@loki.network>
6 years ago
Beaudan 1e3886cca8 More consistent naming of key storage functions, moved some loki messenger only functions into new file 6 years ago
Beaudan Campbell-Brown 86e04b89e2 Update js/models/conversations.js
Co-Authored-By: sachaaaaa <40749766+sachaaaaa@users.noreply.github.com>
6 years ago
Mikunj Varsani 8afbb9b3e5 Update js/views/conversation_view.js
Co-Authored-By: sachaaaaa <40749766+sachaaaaa@users.noreply.github.com>
6 years ago
sachaaaaa e62c661ed9 Treat session reset success messages as incoming, handle failure differently 6 years ago
sachaaaaa 962c947605 Prevent "secure session reset succeeded" message from being cleaned up at startup 6 years ago
sachaaaaa f2e1b9b8de more missing awaits 6 years ago
sachaaaaa df80249cba fix missing awaits 6 years ago
sachaaaaa 4cc614269e add setter for session reset state 6 years ago
Beaudan Campbell-Brown 1dc621a917 Fix using FriendStatusEnum for session reset
Co-Authored-By: sachaaaaa <40749766+sachaaaaa@users.noreply.github.com>
6 years ago
sachaaaaa 7e612700f7 Handle session reset, Loki style 6 years ago
Beaudan 13db2d666f Fixed test again after rebase, reworked some logic in the conversation validateNumber function to correctly reflect what libsignal thinks is valid 6 years ago
Beaudan eb7a0dbb3a Fix failing tests except for problematic spellcheck package 6 years ago
Mikunj 62c802445b Allow generating mnemonic for different languages. 6 years ago
Mikunj 8c78a78b41 Converted to dark theme. 6 years ago
Mikunj 85298012e4 Added generation of seed in registration. 6 years ago
Mikunj 89a19fd09b Added accordian style to registration view 6 years ago
sachaaaaa 4be6af569a
Merge pull request #69 from Mikunj/ui/header
Updated current profile display in UI
6 years ago
sachaaaaa 06ece60da8 Fix glitch in last message shown in conversation list 6 years ago
Mikunj 570a7f5bf8 Fix header not updating when editing nickname. 6 years ago
Mikunj 08f9101fec Hide new contact view unless we have no matches. 6 years ago
Mikunj 1cb09cad2a Add header options. 6 years ago
Mikunj 14ecbc3f35 Moved MainHeader into its own Backbone View. 6 years ago
Mikunj c6d1c8303e Added a validation to check if a pubkey is prefixed by 05. 6 years ago
Mikunj cb3599eea8 Removed IdentityKeyHeader. 6 years ago
Beaudan 28fc5793a7 More explicit function names, shifted friend request sent logic to more sensible place 6 years ago
Beaudan 91a8a82e39 More PR suggestions, now recover from early exit before friend request is sent 6 years ago
Beaudan 2de01d0343 Back to multiple pending states, fix some notification bugs and friend requests should now work for all cases besides message sending interruption 6 years ago
Beaudan 051e4dd22c XAnother big refactor to tie conversation UI logic to the friendRequestStatus variable 6 years ago
sachaaaaa 5212edcee2
Merge pull request #68 from Mikunj/ui/profile-icons
Automatically generate profile icons
6 years ago
Mikunj c8db0e200d Fixed incorrect await. 6 years ago
Mikunj d60f147659 replaced jdenticon with identicon.js.
Cleanup any unused images.
6 years ago
Mikunj c10e81355d Moved profile name saving to account manager. 6 years ago
sachaaaaa b5cb582e94
Merge pull request #67 from sachaaaaa/log_level
More log level finetuning
6 years ago
Mikunj 06f79eb3fd Allow user to set display name when registering. 6 years ago
Mikunj 961eb53915 Auto-generate profile images on conversations. 6 years ago
sachaaaaa 8f22babfcc More log level finetuning 6 years ago
Mikunj d2c9def028 Fix code comment. 6 years ago
Mikunj cc0b74fe4a Don't show ourselves in the contact list. 6 years ago
Mikunj d6d71cb51e Show all contacts. 6 years ago
Mikunj 3eb193cca2 Added accordian 6 years ago
Mikunj fbc3832cfb Show friends in inbox. 6 years ago
Mikunj 62135a1810 Added a section below conversation list.
Fixed scrolling on conversations.
6 years ago
sachaaaaa f900fc496d
Merge pull request #61 from Mikunj/feature/profile-nickname
Added profile sharing and setting nicknames.
6 years ago
Scott Nonnenberg 313d08344a Request configuration sync on startup of new version 6 years ago
Mikunj 18d638fdbf Fix sending and receiving profile.
Don't delete profile after if we set the display name to empty.
6 years ago
Beaudan fa63ce5ade Review changes 6 years ago
Mikunj 610a305e23 Added localised strings.
Only override name when editing profile.
6 years ago
Beaudan 35c89ea4d9 Big refactor, prekeybundle moved back to a content message 6 years ago
Mikunj f7e9af4e3a Reverse changes to contact.js 6 years ago
Mikunj b929b11f07 Override unused signal code.
minor fix.
6 years ago
Mikunj ac4e04912c Minor language fixes. 6 years ago
Mikunj 14ee7fec65 Moved and nicknames into conversations. 6 years ago
Mikunj 98c4b5d77b Added editing own nickname.
Fix dark theme support.
Fix notification titles.
6 years ago
Mikunj 449f44cc5a Added changing user nicknames. 6 years ago
Mikunj 6ce9d6a08c Added nickname dialog. 6 years ago
Mikunj cf24e42a0e Added storing nicknames. 6 years ago
Mikunj aa57693fce Update profile if we get it through a message. 6 years ago
Mikunj 774c52a407 Added dynamic profile fetching in conversation.
Added setting profile when sending DataMessage.
6 years ago
Mikunj 0e6c14eb5c Added profile model. 6 years ago
Scott Nonnenberg a291834301 Dismiss typing indicator when ConversationView is not loaded 6 years ago
Scott Nonnenberg 70eed938d9 Store arrayBuffers in database for remote identity keys 6 years ago
Scott Nonnenberg 79a861a870 Typing Indicators 6 years ago
Scott Nonnenberg 99252702e1 Support receiving multiple images in one messages 6 years ago
Scott Nonnenberg 447a217397 Bulletproof getNumberInfo against missing ourNumber 6 years ago
sachaaaaa 4309a10ebc
Merge pull request #60 from BeaudanBrown/develop-mode-settings
Removed some repetetive logs, developer mode settings
6 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 6 years ago
sachaaaaa 5c128e9d91 remove `isFriend` from conversation default 6 years ago
Beaudan f67c71bda1 Fixed comment typo 6 years ago
Beaudan b65d6a6d2c Refactor friend request status to use a state enum variable 6 years ago
sachaaaaa 05602b3281 Fix accessing $messageField before assignment 6 years ago
Mikunj d37b02421c Merge commit '96595a46d81b2d7361dfde213392e203b18ee279' into fix/prekey-saving 6 years ago
Mikunj 9fd822a7e3 Remove preKeys on friend request decline. 6 years ago
Mikunj 0dabce9e28 Remove preKeyBundle from message.
Always save preKeyBundles if we receive them.
Always override preKeys when saving.
6 years ago
sachaaaaa 19b6698a24
Merge pull request #53 from BeaudanBrown/read-receipts
Read receipts setting
6 years ago
Beaudan bed9ce5be2 Added read receipt checkbox to the settings window which enables or disables the sending and receiving of read receipts 7 years ago
sachaaaaa dbdd52b4eb
Merge pull request #50 from Mikunj/fix/friend-request
Friend request fixes
7 years ago
Mikunj f29a515fdf Fix up typos. 7 years ago
Mikunj 4fd709be35 Removed unused state. 7 years ago
Mikunj 50e8f65a7e updated doc. 7 years ago
Mikunj fb8b0e1d40 Auto accept friend request if we have both incoming and outgoing friend requests. 7 years ago
Mikunj 8a0b8e1f00 Store the state of the friend request inside the conversation. 7 years ago
Mikunj 484efd34a3 Added friend request message expiration. 7 years ago
Mikunj bd103e2ad2 Minor fixes. 7 years ago
sachaaaaa c9d6a11b1a
Merge pull request #49 from sachaaaaa/log_level
Use correct log level in development mode
7 years ago
Mikunj 628ec5fc76 Updated truncate length to 25. 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
Mikunj 7d8719f250 Fix incoming friend request messages being deleted.
Set pending outgoing friend requests to declined if we receive an incoming friend request.
Fix text input not blocking.
7 years ago
Mikunj dba6a36e83 removed old unused code. 7 years ago
Mikunj 110387508f UI fixes. 7 years ago
Mikunj 4ebdfab633 Update handling of new message logic. 7 years ago
Mikunj cf3e9716ed Update new conditions for friend accepted and key exchange complete in conversations model. 7 years ago
Mikunj 6689802513 Truncate text to 15 characters. 7 years ago
Mikunj a9c1f628a4 Switched to using html select. 7 years ago
Mikunj 5f4a44ba8c Remove returning models from block/unblock.
lint fixes.
7 years ago
Mikunj a3a7f4a621 Merge commit 'ef44a123ed4ada70489d78fde16a86c60ced34a8' into feature/blocking 7 years ago
Beaudan ff3cc7a315 Review changes 7 years ago
Mikunj 1bb608b55a Fixed minor issues. 7 years ago
Mikunj 04bf00d24f Missed semicolon 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 dbb92aa9c8 Added i18n messages. 7 years ago
Mikunj ba390e354b Added unblocking.
Added styling.

Trigger changes on both conversation and messages when we block/unblock.
7 years ago
Mikunj 658b2b0332 List blocked users in settings. 7 years ago
Mikunj a82999818a Added blocking/unblocking from friend request.
Fixed incoming messages being deleted.
7 years ago
Mikunj ae2e2fa2ae Updated UI in conversation to support user blocking behaviour. 7 years ago
Mikunj 8cc9b7b54b Added blocked number model and collection.
Added blocked number controller.
Hooked up BlockedNumberController loading.
7 years ago
Mikunj 34f43088ff Fix incoming messages being deleted on startup. 7 years ago
sachaaaaa 78d39ac177
Merge pull request #41 from Mikunj/fix/friend-notification
Friend Notifications
7 years ago
Mikunj 17e5c861a1 Fixed review issues.
Fixed lint error.
7 years ago
Mikunj c77f996709 Forgot a ; 7 years ago
Mikunj a9e3a64888 removed unused default param. 7 years ago
Mikunj 3943cbbc6e Fix linting error. 7 years ago
Mikunj 4148628e70 Remove any unsent messages when app is started. 7 years ago
Mikunj 4f4ebf3ddd Added an info log on graceful conversation fallback, 7 years ago
Mikunj ece266fffd Added showing pow icon. 7 years ago
Mikunj 676fe8b5c5 Fixed new messages not showing when another message in the conversation is calculating its PoW 7 years ago
Mikunj 745d0e82d4 Added unread count badge . 7 years ago
Mikunj 061b8ab2cb Added function to help friend request notifications 7 years ago
Mikunj dfae580ffa Added notification when receiving a friend request and when a friend request was accepted. 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
Mikunj 688f275262 pass in source, sourceDevice, timestamp and receivedAt when adding a friend request. 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 f2dbdff548 code cleanup. 7 years ago
Mikunj dc1e42a2e4 Removed unneeded comment :) 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
Mikunj f4b60c3ff6 Fix setting friend requests incorrectly. 7 years ago
Beaudan d6534e1bb8 Fixed bug with signed key sig not being saved 7 years ago
Mikunj 5e48efc935 Merge commit 'd94365f1c6dbb315f67f29b47982b5f24bd11f5f' into feature/friend-request 7 years ago
Mikunj 6aab900da2 Handle friend request updated. 7 years ago
Mikunj 4d08a74d53 Updated FriendRequest to be more consistent with the other typescript components. 7 years ago
Mikunj f45e0030c4 Added status display and retry send to friend request. 7 years ago
Mikunj 7530836110 Send message status in friend request props. 7 years ago
Mikunj 757216fe80 Fix text input disabling. 7 years ago
Mikunj 2a83c8710c Fix up sending friend requests. 7 years ago
Mikunj fc3cb9c46d Replace old pending messages with new one when adding a new incoming friend request.
More refactoring.
7 years ago
Mikunj d5fafd4d78 refactor friend request message props 7 years ago
Mikunj a80d6bb868 Merged branch correctly. 7 years ago
sachaaaaa 2451ffdca4 Comment out signal-specific logic introduced in latest merge 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 ecf3f18762 Improve our deletion of IndexedDB post-SQLCipher migration 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 fca5a74da3 Fixed review issues. 7 years ago
Mikunj 0cecbe147c Removed todo 7 years ago
Mikunj c583819ccf Fixed view layouts after deleting a conversation. 7 years ago
Mikunj 0cf616328e Fixed saving prekey bundle once friend request is accepted.
Added option to delete conversation after it is declined.
7 years ago
Mikunj 0a88f337d5 Merge branch 'sig-development' into merge/signal 7 years ago
Mikunj be1a69c200 Fix up saving friendRequestStatus 7 years ago
Mikunj c150cbe34f Friend request message indicator. 7 years ago
Mikunj b9e85bb141 Added handling of accept and decline events. 7 years ago
Mikunj 08ca779fe1 Fixed up friend request message display 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 98185fa6fd Added sql migration. 7 years ago
Mikunj 77602e3dbb Moved contactPreKey and contactSignedPreKey to sql. 7 years ago
Mikunj 525007f944 Added fetching preKey by recipient. 7 years ago
Mikunj 1a4adf2281 Merge branch 'development' into merge/signal 7 years ago
Mikunj f589fdac5c Merge signal changes into branch. 7 years ago
Mikunj 683d4f4106 Merge branch 'development' into feature/public-key-validation 7 years ago
Mikunj 61d15fdd57 Changed == to === 7 years ago
Mikunj 9ea44a5cd2 fix incorrect error return. 7 years ago
Mikunj 4e6df71999 Fix up tests. 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
Mikunj 9d342e8951 Show a message if user types in an invalid public key in search. 7 years ago
Mikunj 28f6992085 Replaced var with const. 7 years ago
Mikunj 8d9fbdb3df Fix create conversation appearing even if you already have a conversation with the contact. 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 486932048c Add logging to help in debugging sealedSender state 7 years ago
Scott Nonnenberg 0297279084 Eliminate some conversation fields which are no longer used 7 years ago
Scott Nonnenberg e08c5e3307 Add current message counter to the log to help with debugging 7 years ago
Scott Nonnenberg 9f647f00d8 A couple fixes for the data layer, legacy message upgrade/migrate 7 years ago
Scott Nonnenberg 68e3cade17 Don't display 'read' icon if read-recipts-setting is disabled 7 years ago
Scott Nonnenberg e2e0e4c96b Refine sealed sender logic 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
sachaaaaa d91f04930c
Merge pull request #21 from loki-project/bugfix/pow-nonce-calc
Bugfix/pow nonce calc
7 years ago
Beaudan 4598fd222a Cleaned up newNonce stuff. Now doing target calculation with BigIntegers 7 years ago
sachaaaaa 7b1fbe362e Allow choosing language for mnemonic seed 7 years ago
sachaaaaa bbabeb34b8
Merge pull request #18 from sachaaaaa/mnemonic
Allow registering using a mnemonic word list
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 739bd4dbda Request contact sync only on the first connect after upgrade 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
sachaaaaa e1ffe582c3 Prompt user when an incoming friend request is received 7 years ago
sachaaaaa 143b1e883d
Merge pull request #17 from sachaaaaa/lock_input_friend_request
Lock input after friend request is sent
7 years ago
Scott Nonnenberg 1e562c8293 Properly handle avatar changes in group update messages 7 years ago
sachaaaaa 1ce29d77c3 Moved mnemonic to node side. Added sc_reduce32 (asm) to generate privkey. Moved mnemonic languages to separate files. 7 years ago
sachaaaaa 1cf8710127
Merge pull request #16 from sachaaaaa/friend_response
Handle prekeys in incoming friend request
7 years ago
sachaaaaa a418a9d23b allow registering using a mnemonic word list (seed used as privKey for now) 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
Scott Nonnenberg f21f83a163 Conversations have blue avatar backgrounds if no image provided 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 5602f4bfff Change placeholder in discussion 7 years ago
sachaaaaa d4d0d05adf Lock text input while waiting for friend request reply 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 b9cc17b81a inboxView: Ensure Conversation exists for our own number 7 years ago
Scott Nonnenberg a24d9f9979 Ensure that file is not attached if we've filtered it 7 years ago
sachaaaaa d5ef0cfb03 Revert changes and rename keysPending to keyExchangeCompleted 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
sachaaaaa ecd300d68d Change keysPending flag to keyExchangeStatus in conversation model 7 years ago
Scott Nonnenberg 7d9711ba65 Restore iOS-specific theme; colors on left in android theme 7 years ago
Scott Nonnenberg ca61c9cb85 Warnings for dangerous files 7 years ago
Scott Nonnenberg 3b8f934741 On startup, if we've just upgraded to a new version, contact sync 7 years ago
Scott Nonnenberg 59d58aaab5 Allow GIFs larger than 6MB 7 years ago
sachaaaaa 6fe70b9b85 Send outgoing messages as raw bytes (Uint8Array) and moved recipient & ttl to header 7 years ago
Scott Nonnenberg 584e932891 Close recorder on switch away, only send after finish clicked 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 8f3e3b7aaf Update to new design for avatars: individual/group icons/colors
And two initials.
7 years ago
Scott Nonnenberg 10c53bddb0 Move to new colors, switch incoming/outgoing colors 7 years ago
Scott Nonnenberg cd60bdd08a Move conversations to SQLCipher 7 years ago
sachaaaaa d521795cf8 add helper to set the keysPending flag for a discussion 7 years ago
sachaaaaa 22a86b5351 store key bundle status in conversation model 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 3464eb65b8 Keep conversation.lastMessage in memory 7 years ago
Scott Nonnenberg 814b9cf26a Only accept 'you left group' messages when group blocked 7 years ago
Scott Nonnenberg 9c399624cc Support for blocking groups on mobile, via group/blocked syncs 7 years ago
Scott Nonnenberg 46dac94ab8 Pop toast on attempted attach if image attachment is too large 7 years ago
Scott Nonnenberg d0c4152d99 backup.js: Remove references to nonexistent i18n strings 7 years ago
Scott Nonnenberg ea8e76d9de MessageView: Only re-render on change of key conversation fields 7 years ago
Scott Nonnenberg 8584a79352 Don't treat sends to a group with unregistered users as an error 7 years ago
Scott Nonnenberg 998c35dcb3 Split configuration into low and high traffic files
Also, we're now handling config ourselves instead of using
electron-config and config dependencies.
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 9e0319acb0 fix encrypting message by returning fake localRegistrationID (not sure what it's for) 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 2ae91752d3 skip fetching profiles when clicking on contact 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 8f33419b52 Change pubkey representation to hex instead of base64 7 years ago
jcktm 09a0c46637 added identity key above the conversation box 7 years ago
sachaaaaa c1d6e6113f ValidateNumber now accepts pubkeys instead of phone numbers. This allows starting a conversation with a pubkey. 7 years ago
sachaaaaa b043a469a2 Change regex that filters potentially valid contacts in search bar to match a pub key 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
sachaaaaa 9638639045 Bypass SMS verification 7 years ago
Scott Nonnenberg 37f3054976 Both UI timer and database timer will remove expired message 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 a247ffe5cf When iOS device has been linked, use iOS color scheme 7 years ago
Scott Nonnenberg 0eb2c958a5 Handle contact: don't exit early if timer is 'invalid' 7 years ago
Scott Nonnenberg 621883a0ce Disable drag and drop if it's not a file attachment 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 9eefc0c29b SettingsView: Fix logging 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 ae6876a153 Ensure that error in handleDataMessage is treated as error 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 9ff80469a5 In partially-successful group send, don't start expire timer 7 years ago
Scott Nonnenberg 9ed1ee90f8 Move expiring message time earlier if read sync has earlier time 7 years ago
Scott Nonnenberg a01db40e27 Ensure that a SQL command timeout results in an error 7 years ago
Scott Nonnenberg 4b3ddef955 Allow for 'error' status on incoming messages not just outgoing 7 years ago
Scott Nonnenberg 8180417611 Update conversation first on timer change to eliminate flicker 7 years ago