Commit Graph

871 Commits (a960acacc609a50d9939f231917b01a5a9ba9a4f)
 

Author SHA1 Message Date
lilia a960acacc6 Add textsecure.refreshKeys
This helper checks the server for the number of remaining prekeys, then
generates more if there are fewer than 10 remaining.

// FREEBIE
10 years ago
lilia 96eafc7750 Integrate libaxolotl async storage changes
* Session records are now opaque strings, so treat them that way:
  - no more cross checking identity key and session records
  - Move hasOpenSession to axolotl wrapper
  - Remote registration ids must be fetched async'ly via protocol wrapper
* Implement async AxolotlStore using textsecure.storage
* Add some db stores and move prekeys and signed keys to indexeddb
* Add storage tests
* Rename identityKey storage key from libaxolotl25519KeyidentityKey to
  simply identityKey, since it's no longer hardcoded in libaxolotl
* Rework registration and key-generation, keeping logic in libtextsecure
  and rendering in options.js.
* Remove key_worker since workers are handled at the libaxolotl level
  now
10 years ago
lilia 8304aa903a Update libaxololt to a087b9e746e67995f16e077183cc0 10 years ago
lilia 2cb0070343 s/TextSecure/Signal on options page 10 years ago
lilia a76fbe165b Add css transition to smooth progress bar animation
Conflicts:
	js/options.js
10 years ago
lilia 2ff954d2f8 Fix api.js 10 years ago
lilia e4b49bde51 Add more websocket tests 10 years ago
lilia cc6a44f35d Fix tests 10 years ago
lilia 3ea254d0db Add TextSecureWebSocket tests 10 years ago
lilia 849a407433 Add mock-socket for testing socket stuff 10 years ago
lilia da34b8e0f8 Rename textsecure.websocket and make it internal-only 10 years ago
lilia 89c24cd2fa Move throwHumanError to api.js
It is only used there.
10 years ago
lilia 36b1e87214 Add textsecure.MessageReceiver
Encapsulate the websocket resources and socket setup process in a
friendly OO class. The MessageReceiver constructor expects an instance
of EventTarget on which to fire message events asynchronously. The
provider of the EventTarget can then add/remove listeners as desired.
10 years ago
lilia bf2bf4cfd9 Remove redirect to index from registration.done() 10 years ago
lilia 6f3de68834 Move browserAction call 10 years ago
Tara Vancil 074bb66a4c Add tests for messages model.
Closes #222
10 years ago
Matt Corallo 4157c2c7a4 Merge pull request #227 from WhisperSystems/devices
Remove unsued argument from getDeviceObject
10 years ago
lilia 37e09da1cc Remove unsued argument from getDeviceObject
Last usage of the `returnIdentityKey` argument was removed in 8b9a16852.
10 years ago
lilia 5a46300581 Reorder database.js include in test 10 years ago
lilia 5888039123 Reorder database.js include
Prep to use indexedDB for axolotl storage.
10 years ago
lilia 026f110d36 Delete the database once, before tests run 10 years ago
lilia c68bf07409 Don't jscs the generated key_worker.js 10 years ago
lilia bdecf5cc44 Generate key_worker.js
Instead of calling importScripts, which is prone to relative path
issues, generate the worker script with everything it needs included.
10 years ago
lilia 7af42a27c5 Fix registerKeys using array indices for key ids
preKeys is an array whose indices may or may not be keyId-based. Since
we have an inline keyId property, use that instead.
10 years ago
lilia 00989962d8 Rename worker script file 10 years ago
lilia de65f9e6bd Add missing resolve 10 years ago
Patrick Connolly b5d724ffc3 Replaced frontend getString calls broken in d3c158f.
Closes #224
10 years ago
lilia 90c742d57c More error logging 10 years ago
lilia c6b0b71383 Change progress dialog header 10 years ago
lilia 25224da12e Fix unsafe eval warning on registration page 10 years ago
lilia 23feeecbcf Wrap libts, don't leak into global namespace 10 years ago
lilia c51773ab0e More helpful error logging 10 years ago
lilia 9effa85e40 Remove libaxolotl concat task 10 years ago
lilia 319332bb6f Add missing semicolon
:[
10 years ago
lilia 5d4298697c Use view.$ shorthand for scoped jquery searches
Wish I'd noticed that one earlier. http://backbonejs.org/#View-dollar
10 years ago
lilia 0373252901 Update stylesheet 10 years ago
lilia 13ce354ab8 Registration UX improvements
Add some nice modal dialogs instead of confirmation alerts.
10 years ago
lilia 6d9c7182c4 Let the key worker close itself when done 10 years ago
lilia d3dbf2328f Set unread count badge when background page is refreshed
Refreshing the background page unsets the badge.
10 years ago
lilia bfe23d86aa Run key generation in a worker
Ground work for a smoother registration flow. Overall UX still needs
some polish but at least now we can have a progress gif or animation or
whatever. Also adds the phonenumber-confirmation step as a simple alert
box, which will be replaced with a nice dialogue in a later commit.
10 years ago
lilia 0a9598ae21 Update CONTRIBUTING.md 10 years ago
Tara Vancil d65e0e5eda Add tests for message and conversation models
Closes #218
10 years ago
lilia 196aa28873 Fix NaN badge
lolNaNcat
10 years ago
Matt Corallo 8b9a168524 Store session information separately 10 years ago
Matt Corallo e33c6fddda Do not rely on deviceObject.sessions anywhere in sendmessage 10 years ago
Matt Corallo 6c0f3ff1f0 Move session-storage logic to storage/devices from axolotl_wrapper 10 years ago
Matt Corallo 169097a409 Remove stale comments in axolotl_wrapper 10 years ago
Matt Corallo 89fefe4323 Create a textsecure.storage.impl to be overriden if desired 10 years ago
Matt Corallo 56bffdcfd3 Prefix libaxolotl-stored objects with "libaxolotl" 10 years ago
Matt Corallo 00cb420d37 Merge (un)encrypted storage layers 10 years ago