Commit graph

10974 commits

Author SHA1 Message Date
Matt Corallo 21b95ce1d3 Re-create some of d9bf0a4, which was broken and reverted in 1e6720 2014-05-26 00:45:55 +02:00
Matt Corallo 18f1eed70f Some number verification refactor stuff 2014-05-26 00:45:55 +02:00
Matt Corallo d387cd22f5 s/getEncodedNumber// (with XXXs) 2014-05-26 00:45:55 +02:00
Matt Corallo 9aae93fc99 textsecure.protos 2014-05-26 00:45:55 +02:00
Matt Corallo 665f0ef00a Merge pull request #34 from James-Firth/master
Updated README with developer info
2014-05-24 15:55:37 +00:00
James Firth a9dd59ddba Fixed typo so list is a proper bullet list now. 2014-05-24 10:24:15 -05:00
James Firth 5c3d1f927f Updated README
Added info on how to develop
2014-05-24 10:22:14 -05:00
lilia 1e672030de Fix a couple things broken in d9bf0a4
Slight revert from said commit. We really do need the
IncomingPushMessageSignal protobuf at the UI layer, mostly because
it contains the 'source' attribute, without which we don't know
who sent the message.

Also fix a crash when there are no attachments on a message.
2014-05-22 21:59:34 -07:00
lilia 6064afd43d Fix Uncaught ReferenceError: isRegistrationDone is not defined 2014-05-22 21:34:28 -07:00
liliakai b458dbea39 Merge pull request #32 from jerkey/patch-1
fixed a typo in options.html
2014-05-20 21:51:44 -07:00
jerkey fc192a6cce fixed a typo in options.html
i hereby license my contributions under any GPL
2014-05-20 21:44:58 -07:00
lilia de0a1df3ca Fix broken registration flow
Better load the functions defined in chromium.js before trying to use
them. Hmm.. also, options.js should probably wait for the DOM to load
before it tries to initialize things in it.
2014-05-20 21:39:29 -07:00
Matt Corallo d9bf0a41fb textsecure.storage, chromium.js 2014-05-20 22:21:07 -04:00
Matt Corallo ee2f43aba4 Fix, display (image) attachments 2014-05-19 03:07:01 -04:00
lilia 2820ff8f2d Minor css tweak 2014-05-18 22:57:05 -07:00
Matt Corallo be82547ea1 Move message saving out of helpers.js 2014-05-18 19:50:30 -04:00
lilia 3bd559bbaa DRY up PushMessageContentProtobuf construction
Messages now know how to protobuf-ify themselves.
2014-05-18 14:33:18 -07:00
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.
2014-05-18 13:49:11 -07:00
Matt Corallo 0362ecf709 Merge pull request #31 from codedust/master
Fixed 'TypeError: Promise.resolve is not a constructor' in Firefox
2014-05-18 20:11:58 +00:00
Marco 14ebef70cb fixed 'TypeError: Promise.resolve is not a constructor' in Firefox 2014-05-18 21:58:53 +02:00
lilia 810aabf2a6 Save messages from 'Compose' UI 2014-05-17 20:42:08 -07:00
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.
2014-05-17 20:26:50 -07:00
lilia 170257dafb Fix subscribeToPush is not defined 2014-05-17 14:15:13 -07:00
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.
2014-05-17 14:02:35 -07:00
Matt Corallo 4efb8a2616 Fix NaCL (maybe it should be removed?) 2014-05-17 01:55:32 -04:00
Matt Corallo 6bc19ef558 More namespacing 2014-05-17 01:53:58 -04:00
Matt Corallo 05101b69b0 Some initial helpers.js namespaceing 2014-05-17 00:54:12 -04:00
Matt Corallo 07a23f0759 Fix attachments 2014-05-15 01:02:15 -04:00
Matt Corallo 3103eaa192 Commit broken attachment loader (S3 403s I can't figure out...) 2014-05-15 00:26:37 -04:00
Matt Corallo ea1bd535dc Fix interpretation of prekeymsg.registrationId 2014-05-14 23:26:46 -04:00
Matt Corallo 3744b168e5 Update to jQuery 2.1.1 + jQuery pull #1525 2014-05-14 22:02:35 -04:00
Matt Corallo 2f16b884a5 Fixup last commit 2014-05-14 18:26:07 -04:00
Matt Corallo e3097746c0 Check registration ID on prekeymsg 2014-05-14 18:15:46 -04:00
Matt Corallo 76e7dcb77d Clean up session retreival (fixes #30) 2014-05-14 17:21:54 -04:00
Matt Corallo 8d408e6d8f THOUGH SALL USE TABSTOP AND SHIFTWIDTH 4 (so that indents read right) 2014-05-14 17:21:49 -04:00
Matt Corallo ae41a5df71 Merge remote-tracking branch 'lilia/master' 2014-05-14 17:21:40 -04:00
Matt Corallo d5491bda0b Stop an attacker from closing a session that isn't theirs (#29) 2014-05-14 14:27:08 -04:00
Matt Corallo 3a812d4958 Multi-session storage for close/regular message race conditions 2014-05-14 05:10:05 -04:00
Matt Corallo cdebc8afb4 Also delete chain key 2014-05-14 03:33:24 -04:00
Matt Corallo 08093a206d Fix old chain deletion 2014-05-14 03:02:47 -04:00
Matt Corallo 605863ffa3 Fix decryption of large messages (eg w/ attachments) 2014-05-14 02:08:01 -04:00
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.
2014-05-13 20:10:30 -07:00
Matt Corallo 5752a772d1 promises, type conversion errors 2014-05-13 15:15:45 -04:00
Matt Corallo caa363b929 FINALLY report crypto, etc errors to console thanks to promises... 2014-05-13 04:40:29 -04:00
Matt Corallo a7de5e2159 last(?) round of crypto.js AB-type-conversion changes, new tests 2014-05-13 01:52:25 -04:00
Matt Corallo f46d8eaaad Merge pull request #23 from liliakai/fix
Fix exception in options.js on first run
2014-05-12 22:39:19 +00:00
lilia 1d95fcc027 Fix exception in options.js on first run
Fixes #22 Uncaught ReferenceError: getRandomBytes is not defined
options.js:41
2014-05-12 13:45:52 -07:00
Matt Corallo 3b79dd256c Remove TODO.txt now that I found time to put in github issues. 2014-05-11 23:24:31 -04:00
Matt Corallo 5583e82a20 Refactor some low-level crypto things 2014-05-09 03:43:23 -04:00
Matt Corallo 905357a2e1 More wholesale conversion to promises 2014-05-09 03:20:54 -04:00