lilia
b9b01330fe
Move jquery from libtextsecure components
...
Jquery is not required by libtextsecure, but our test coverage tool,
blanket, depends on it.
// FREEBIE
2015-10-19 12:51:59 -07:00
lilia
bf81686c6e
Remove gray background from message detail
...
// FREEBIE
2015-10-17 12:23:12 -07:00
lilia
f7452d2825
Conversation list style tweaks
...
List items are translucent normally, opaque grey/white when selected.
// FREEBIE
2015-10-17 12:07:53 -07:00
lilia
b0112e8c2e
Remove unnecessary check in gruntfile
...
There's only one reference to the server url nowadays.
// FREEBIE
2015-10-16 18:19:25 -07:00
lilia
389b9a026d
Initial restyle
...
Added background gradient and restyled conversation elements as floating
panels and cards.
// FREEBIE
2015-10-16 18:14:50 -07:00
lilia
ee393bfa03
Ensure that tokens get updated on initial save
...
// FREEBIE
2015-10-16 13:01:14 -07:00
lilia
2f8d973366
Restore native window chrome
...
// FREEBIE
2015-10-16 12:52:10 -07:00
lilia
82ce76265d
Remove stray log statement
...
// FREEBIE
2015-10-16 12:32:06 -07:00
lilia
d864819364
Hide buttons for group creation, update, and leave
...
// FREEBIE
2015-10-16 11:17:49 -07:00
lilia
f70c22f898
Add search field to inbox
...
Using the search field produces a filtered view of all contacts and
groups containing the input. To make this fast and scalable, add an
index on a 'tokens' array containing words from the conversation name
and different forms of phone number.
Closes #365
// FREEBIE
2015-10-15 13:33:07 -07:00
lilia
7414828bb3
Disable keepalive tests
...
These are failing because MockSocket doesn't implement an EventTarget
interface like an actual WebSocket does, so we get an exception when
trying to call addEventListener on it. :(
// FREEBIE
2015-10-11 13:18:51 -07:00
lilia
81ebc5ffd7
Improve stack traces on HTTPErrors
...
Save stack even earlier, outside the promise.
// FREEBIE
2015-10-11 12:12:11 -07:00
lilia
c062fe3060
Automatically retry failed http requests
...
If we failed to reach the server, wait a second and try again up to 3
times.
// FREEBIE
2015-10-10 19:07:00 -07:00
lilia
a93b8cea72
Collapse multiple retry buttons
...
If you're going to retry one, you might as well retry everyone.
// FREEBIE
2015-10-10 16:59:52 -07:00
lilia
816a206892
Refactor sendMessageToDevices
...
Split into separate encrypt and transmit functions. Let the encryption
function also handle all wire formatting (ie, jsonification and base64
encoding), which simplifes TextSecureServer.sendMessages, removes a
TODO, and lets us save fewer params to make network errors replayable.
// FREEBIE
2015-10-10 16:36:30 -07:00
lilia
e9bc39bc56
Add parens and line breaks
...
// FREEBIE
2015-10-10 15:12:06 -07:00
lilia
b1c933ccd4
Don't show myself in the message detail contacts list
...
// FREEBIE
2015-10-08 06:13:36 -07:00
lilia
87d4f0d5d8
Fix non-disappearing resend button
...
The resend button should disappear once you've clicked it. This was not
happening because the message detail view held a cached copy of the old
message errors. Fix by re-reading the errors when we re-render.
// FREEBIE
2015-10-05 15:07:55 -07:00
lilia
0ff38e41c2
Let keepalive listen to socket events
...
Wait until the socket connects before starting the keepalive timer.
Automatically stop the keepalive when the socket is closed.
// FREEBIE
2015-10-05 15:05:24 -07:00
lilia
1345899253
Use reject instead of throw
...
This ensures that the containing promise is rejected without triggering
the side effects of an uncaught exception, such as causing the debugger
to pause.
// FREEBIE
2015-10-03 23:19:53 -07:00
lilia
a32f3ff1f6
More work on replayable errors
...
Expose a button that does that retries outgoing messages if possible.
// FREEBIE
2015-10-02 18:31:07 -07:00
lilia
bc0c9bd133
Remove attachment host string replace
...
This host is no longer hard coded anywhere.
// FREEBIE
2015-10-02 18:00:40 -07:00
lilia
69bbaac3b9
Fix conversation model test
...
// FREEBIE
2015-10-02 15:13:13 -07:00
lilia
5eabfa2559
Fix libtextsecure tests
...
// FREEBIE
2015-10-02 15:08:21 -07:00
lilia
5bf608598c
Fix MessageSender prototype
...
// FREEBIE
2015-10-02 15:02:25 -07:00
lilia
b0da491025
Don't throw on unknown groups
...
// FREEBIE
2015-10-02 12:54:12 -07:00
lilia
b42626923c
Don't double-render key conflict errors
...
// FREEBIE
2015-10-02 12:35:28 -07:00
lilia
7ec4700431
Handle saving errors when none exist already
...
// FREEBIE
2015-10-02 12:35:28 -07:00
lilia
4cc7a30107
Remove error class when no more message errors
...
// FREEBIE
2015-10-02 12:15:25 -07:00
lilia
ae25d62ef2
Fix up post-conflict resolution error processing
...
// FREEBIE
2015-10-02 12:14:34 -07:00
lilia
d3812869d2
Don't throw errors from background
...
// FREEBIE
2015-10-02 12:14:10 -07:00
lilia
bbb5b24d6b
Fix disappearing conversation bug
...
Opening two message-detail views in two separate conversations would
disappear one of the conversations. Fixed by better encapsulating the
sub-views of a conversation.
// FREEBIE
2015-10-02 11:21:11 -07:00
lilia
8f003ea69d
Don't throw if sender is not a group member
...
This could happen if we simply failed to process an earlier group
update correctly.
// FREEBIE
2015-10-02 10:43:34 -07:00
lilia
4a1d0ebdb9
Pass bytebuffer to axolotlInstance
...
// FREEBIE
2015-10-02 00:03:49 -07:00
lilia
46c9a7fafb
Fix tryMessageAgain
...
// FREEBIE
2015-10-02 00:02:18 -07:00
lilia
08b864b57c
Fix standalone registration
...
// FREEBIE
2015-10-01 22:04:07 -07:00
lilia
9872b59355
Simplify filter predicate
...
Untangle a double negative to make this line shorter and easier to read.
// FREEBIE
2015-10-01 21:11:41 -07:00
lilia
0fa1069a93
Don't throw on duplicate members in a group update
...
Fixes #364
// FREEBIE
2015-10-01 21:11:41 -07:00
lilia
1aee065c2c
Fix registration
...
Previously would fail to register keys by using the wrong username.
The username should be <number>.<deviceid> once we've confirmed our
account and received a deviceId from the server.
// FREEBIE
2015-10-01 20:43:30 -07:00
lilia
978b3d1a98
DRY up tryMessageAgain
...
// FREEBIE
2015-10-01 18:43:20 -07:00
lilia
fbb65d1988
Add replayable network errors
...
Support for manual message retry.
// FREEBIE
2015-10-01 18:43:20 -07:00
lilia
bc03bdbfc4
Move tryMessageAgain to MessageReceiver
...
`tryMessageAgain` is the routine called when re-trying a message that
failed to decrypt due to an IncomingIdentityKeyError. This handling
needs to move to MessageReceiver because it depends on
`processDecrypted` to handle incoming message protos, which depends
on a server instance in order to download attachments.
// FREEBIE
2015-10-01 18:43:19 -07:00
lilia
0fc673f25f
Refactor sendmessage for prototypality
...
// FREEBIE
2015-10-01 18:43:18 -07:00
lilia
868695558d
Throw on bad server url
...
// FREEBIE
2015-10-01 18:43:18 -07:00
lilia
e30ac86c8a
Remove deleted file from concatentation list
...
// FREEBIE
2015-10-01 18:43:17 -07:00
lilia
c8a1e090d2
Move handleAttachment and processDecrypted
...
Make these internal methods on MessageReceiver. Todo: refactor
identity key errors to use a given message receiver.
// FREEBIE
2015-10-01 18:43:07 -07:00
lilia
a8f4bac2f7
Let makeAttachmentPointer resolve falsey arguments
...
Internalizing this pattern to the makeAttachmentPointer function lets us
DRY it up throughout the file.
// FREEBIE
2015-10-01 18:33:50 -07:00
lilia
e626355e0c
Let background page instantiate AccountManagers
...
Remove the need to expose the server url config as a global.
// FREEBIE
2015-10-01 18:33:49 -07:00
lilia
edd76ec65a
AccountManager takes a url
2015-10-01 18:33:49 -07:00
lilia
9de23a967b
Fix dropping the first websocket message
2015-10-01 18:33:49 -07:00