lilia
9e7d8c0a08
Rename textsecure.api and make it internal-only
2015-05-05 17:44:56 -07:00
lilia
45a61780af
Fixup refreshPreKeys and call it whenever a prekey is deleted
2015-05-05 17:44:56 -07:00
lilia
7d0aeac8cb
Use a worker to facilitate key generation
2015-05-05 17:44:55 -07:00
lilia
f465bdddbf
Add textsecure.AccountManager
...
This class should be used for account registration and for refreshing
prekeys for your account.
2015-05-05 17:44:55 -07:00
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
2015-05-05 17:44:55 -07:00
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
2015-05-05 17:44:55 -07:00
lilia
8304aa903a
Update libaxololt to a087b9e746e67995f16e077183cc0
2015-05-05 17:44:54 -07:00
lilia
2ff954d2f8
Fix api.js
2015-05-04 15:14:58 -07:00
lilia
cc6a44f35d
Fix tests
2015-05-01 12:13:03 -07:00
lilia
da34b8e0f8
Rename textsecure.websocket and make it internal-only
2015-04-30 15:07:35 -07:00
lilia
89c24cd2fa
Move throwHumanError to api.js
...
It is only used there.
2015-04-30 12:26:13 -07:00
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.
2015-04-29 16:50:20 -07:00
lilia
bf2bf4cfd9
Remove redirect to index from registration.done()
2015-04-29 13:39:41 -07:00
lilia
6f3de68834
Move browserAction call
2015-04-29 12:22:12 -07:00
lilia
37e09da1cc
Remove unsued argument from getDeviceObject
...
Last usage of the `returnIdentityKey` argument was removed in 8b9a16852
.
2015-04-20 17:20:58 -07:00
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.
2015-04-15 15:38:57 -07:00
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.
2015-04-15 15:23:08 -07:00
lilia
00989962d8
Rename worker script file
2015-04-15 14:42:01 -07:00
lilia
de65f9e6bd
Add missing resolve
2015-04-15 12:24:29 -07:00
Patrick Connolly
b5d724ffc3
Replaced frontend getString calls broken in d3c158f
.
...
Closes #224
2015-04-15 11:56:36 -07:00
lilia
90c742d57c
More error logging
2015-04-09 14:45:46 -07:00
lilia
25224da12e
Fix unsafe eval warning on registration page
2015-04-05 16:42:08 -07:00
lilia
23feeecbcf
Wrap libts, don't leak into global namespace
2015-04-05 16:42:08 -07:00
lilia
c51773ab0e
More helpful error logging
2015-04-05 16:42:07 -07:00
lilia
319332bb6f
Add missing semicolon
...
:[
2015-03-29 16:37:26 -07:00
lilia
5d4298697c
Use view.$ shorthand for scoped jquery searches
...
Wish I'd noticed that one earlier. http://backbonejs.org/#View-dollar
2015-03-29 16:29:05 -07:00
lilia
13ce354ab8
Registration UX improvements
...
Add some nice modal dialogs instead of confirmation alerts.
2015-03-26 15:20:17 -07:00
lilia
6d9c7182c4
Let the key worker close itself when done
2015-03-26 15:18:57 -07:00
lilia
d3dbf2328f
Set unread count badge when background page is refreshed
...
Refreshing the background page unsets the badge.
2015-03-26 10:50:25 -07:00
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.
2015-03-26 10:49:52 -07:00
lilia
196aa28873
Fix NaN badge
...
lolNaNcat
2015-03-25 13:09:15 -07:00
Matt Corallo
8b9a168524
Store session information separately
2015-03-25 11:56:28 -07:00
Matt Corallo
e33c6fddda
Do not rely on deviceObject.sessions anywhere in sendmessage
2015-03-25 11:56:27 -07:00
Matt Corallo
6c0f3ff1f0
Move session-storage logic to storage/devices from axolotl_wrapper
2015-03-25 11:56:27 -07:00
Matt Corallo
169097a409
Remove stale comments in axolotl_wrapper
2015-03-25 11:56:26 -07:00
Matt Corallo
89fefe4323
Create a textsecure.storage.impl to be overriden if desired
2015-03-25 11:56:26 -07:00
Matt Corallo
56bffdcfd3
Prefix libaxolotl-stored objects with "libaxolotl"
2015-03-25 11:56:26 -07:00
Matt Corallo
00cb420d37
Merge (un)encrypted storage layers
2015-03-25 11:56:25 -07:00
Matt Corallo
454b4726bd
Replace load/decode/index around our own number with helpers
2015-03-25 11:54:55 -07:00
lilia
3759fe46e9
Account for -1 HTTPError code
2015-03-25 11:46:14 -07:00
lilia
e52224e481
Remove libtextsecure's jquery dependency
...
Use only the finest, hand-crafted, artisanal XMLHttpRequests.
2015-03-25 10:32:14 -07:00
lilia
a2d88b4fad
Don't trigger notifications for sync messages
2015-03-24 18:12:33 -07:00
lilia
923bb8bbc9
Fix crash in message detail view
...
Fix crash when there's no contact for a group member.
2015-03-24 11:36:42 -07:00
lilia
e8cb4efaa4
Allow key conflict resolution for group updates
...
Creating a group with a member who's identity key has changed would
previously fail silently. Now, we catch and save the error, allowing the
same conflict resolution process as with regular messages.
Fixes #205
2015-03-24 10:11:39 -07:00
lilia
4bd46f80e7
Allow empty group avatar file input
2015-03-23 19:24:26 -07:00
lilia
ce36c36bd0
Include outgoing control messages in message history
...
So you know it worked.
2015-03-23 19:24:12 -07:00
lilia
f067bb9954
Remove dead code
2015-03-23 18:41:17 -07:00
lilia
fdb0935d6a
Fix resolveConflicts for groups
2015-03-23 18:36:38 -07:00
lilia
6c3ac2de02
Collapse two views into one
...
We used to have a subview that branched on content/control messages, but
no more.
2015-03-23 18:30:16 -07:00
lilia
caddb8dc09
Smoother group create experience
...
Previously there was a long pause between confirming the group details
and opening the conversation. Fix by first saving/opening the
conversation, rather than waiting for the initial group update to finish
transmitting.
2015-03-23 17:33:46 -07:00