Matt Corallo
be82547ea1
Move message saving out of helpers.js
11 years ago
lilia
3bd559bbaa
DRY up PushMessageContentProtobuf construction
...
Messages now know how to protobuf-ify themselves.
11 years ago
lilia
2601c3cc3a
Rename some things to be a little more semantic
...
The 'sender' field actually holds the recipient for outgoing
messages. Rename that field to 'person', indicating the 2nd
party generically.
Also decouples the thread name from thread recipients at the
view layer, in preparation for group support.
11 years ago
Matt Corallo
0362ecf709
Merge pull request #31 from codedust/master
...
Fixed 'TypeError: Promise.resolve is not a constructor' in Firefox
11 years ago
Marco
14ebef70cb
fixed 'TypeError: Promise.resolve is not a constructor' in Firefox
11 years ago
lilia
810aabf2a6
Save messages from 'Compose' UI
11 years ago
lilia
b852e68290
Backbone message storage and views
...
Adds Backbone-based Whisper.Messages model/collection with local storage
extension. Saves sent and received messages in Whisper.Messages instead
of message map. This will assign a unique id to the message and save it
to localStorage.
Adds Backbone-based view to popup.html
Automatically updates itself when new messages are saved to
Whisper.Messages db from the background page.
Added some shiny new styles, and started splitting up css into multiple
files for sanity's sake.
11 years ago
lilia
170257dafb
Fix subscribeToPush is not defined
11 years ago
lilia
ed3aa9667d
Fix undefined URL_BASE in background.js
...
Sieze an opportunity to move code out of the helpers.js.
Only 616 more lines to go.
11 years ago
Matt Corallo
4efb8a2616
Fix NaCL (maybe it should be removed?)
11 years ago
Matt Corallo
6bc19ef558
More namespacing
11 years ago
Matt Corallo
05101b69b0
Some initial helpers.js namespaceing
11 years ago
Matt Corallo
07a23f0759
Fix attachments
11 years ago
Matt Corallo
3103eaa192
Commit broken attachment loader (S3 403s I can't figure out...)
11 years ago
Matt Corallo
ea1bd535dc
Fix interpretation of prekeymsg.registrationId
11 years ago
Matt Corallo
3744b168e5
Update to jQuery 2.1.1 + jQuery pull #1525
11 years ago
Matt Corallo
2f16b884a5
Fixup last commit
11 years ago
Matt Corallo
e3097746c0
Check registration ID on prekeymsg
11 years ago
Matt Corallo
76e7dcb77d
Clean up session retreival ( fixes #30 )
11 years ago
Matt Corallo
8d408e6d8f
THOUGH SALL USE TABSTOP AND SHIFTWIDTH 4 (so that indents read right)
11 years ago
Matt Corallo
ae41a5df71
Merge remote-tracking branch 'lilia/master'
11 years ago
Matt Corallo
d5491bda0b
Stop an attacker from closing a session that isn't theirs ( #29 )
11 years ago
Matt Corallo
3a812d4958
Multi-session storage for close/regular message race conditions
11 years ago
Matt Corallo
cdebc8afb4
Also delete chain key
11 years ago
Matt Corallo
08093a206d
Fix old chain deletion
11 years ago
Matt Corallo
605863ffa3
Fix decryption of large messages (eg w/ attachments)
11 years ago
lilia
e3b00e08f3
Generate and submit registrationId, fixes #25
...
If we're expecting to get registrationIds from others, it's only fair
that we also supply our own.
11 years ago
Matt Corallo
5752a772d1
promises, type conversion errors
11 years ago
Matt Corallo
caa363b929
FINALLY report crypto, etc errors to console thanks to promises...
11 years ago
Matt Corallo
a7de5e2159
last(?) round of crypto.js AB-type-conversion changes, new tests
11 years ago
Matt Corallo
f46d8eaaad
Merge pull request #23 from liliakai/fix
...
Fix exception in options.js on first run
11 years ago
lilia
1d95fcc027
Fix exception in options.js on first run
...
Fixes #22 Uncaught ReferenceError: getRandomBytes is not defined
options.js:41
11 years ago
Matt Corallo
3b79dd256c
Remove TODO.txt now that I found time to put in github issues.
11 years ago
Matt Corallo
5583e82a20
Refactor some low-level crypto things
11 years ago
Matt Corallo
905357a2e1
More wholesale conversion to promises
11 years ago
Matt Corallo
efe2fa1021
Move crypto things to js/crypto.js
11 years ago
Matt Corallo
2b21111d7b
Fix/test pre key generation
11 years ago
Matt Corallo
3fffbad11a
Fix now-broken test cases and change lots of things over to promises
11 years ago
lilia
41d50d7480
Lilia's Webcrypto branch rebased and a few very tiny tweaks
11 years ago
Matt Corallo
ab6ebbab16
Add TODO
11 years ago
Matt Corallo
1137f9d711
Add TODO file showing what still needs to be done
11 years ago
Matt Corallo
138581701c
tweak ui things a tiny bit
11 years ago
Matt Corallo
3e60368a16
LGPL license (I'd like to be an axolotl/TS JS lib in the future)
11 years ago
Matt Corallo
0f8643bcd8
Regenerate bins for fixed ephemeral bit
11 years ago
Matt Corallo
01c4f3dd56
Fix ALL the things!
11 years ago
Matt Corallo
d213cb0598
I like stack traces, also, fix identity key bit fiddle crap
11 years ago
Matt Corallo
705f8ce818
generic-ize
11 years ago
Matt Corallo
87c19c0c94
Another step forward
11 years ago
Matt Corallo
d9e7e59c3a
Merge pull request #9 from Ventero/password
...
Password is always "[object ArrayBuffer"
11 years ago
Ventero
3d7db4dbc3
Correctly extract string data for password.
...
btoa expects a string argument, so when passing it the ArrayBuffer
object returned by getRandomBytes(), it's converted to a string by
calling .toString() on it. This always results in "[object ArrayBuffer]",
effectively resulting in a completely non-random password.
11 years ago