lilia
4a482243d0
Simplify event arguments
...
// FREEBIE
10 years ago
lilia
c8a76ab38e
Fix websocket event handler name
...
// FREEBIE
10 years ago
lilia
21667d9181
Log when we start waiting for an online event
...
// FREEBIE
10 years ago
lilia
823f570955
Add more websocket debug logging
...
// FREEBIE
10 years ago
lilia
f70e844cef
Include url in http response logging
...
Otherwise it's impossible to tell which is which, especially when
sending group messages.
// FREEBIE
10 years ago
lilia
d8803ee31f
Mark leave group messages as sent
...
// FREEBIE
10 years ago
lilia
b1d3829651
Update minimal window dimensions
...
Some day we'll probably lower these minimums but first we'd need a more
responsive design.
Fixes #310
// FREEBIE
10 years ago
lilia
960754ef04
Restyle compose button
...
Move it to a tool bar at the top of the conversation list. This is also
where a search bar will live someday.
Fixes #357
// FREEBIE
10 years ago
lilia
2243c09fea
MessageReceiver is an event target
...
Rather than asking for a global target, the message receiver implements
the EventTarget interface itself. It does not expose the dispatchEvent
method, however. This ensures that events can only be triggered from
within the internal MessageReceiver class, which means we no longer need
to namespace them.
// FREEBIE
10 years ago
lilia
a925027cd2
Refactor MessageReceiver for storage/server independence
...
Let the libtextsecure consumer pass in their own server url, username,
password, and signaling key, as with libtextsecure-java.
Also brings reconnect logic up into the MessageReceiver class, which
is the only place it should apply.
10 years ago
lilia
e59a5792d5
Don't hardcode the attachment host
10 years ago
lilia
184e37383c
Don't auto-populate the relay field
...
According to server api docs, relay is optional when it is the same as
our own server.
// FREEBIE
10 years ago
lilia
7d9cf0c167
Pass the signaling key into decryptWebSocketMessage
...
De-couple this file from dependency on storage.
10 years ago
lilia
c167fc964d
Revert "Remove global updateInbox method"
...
This reverts commit 1c70293bba
.
This broke tests by blocking the database deletion during test
setup.
10 years ago
lilia
87ce3241c8
Remove script-tag for nonexistant test
...
// FREEBIE
10 years ago
lilia
310f40fcad
Contact sync should update existing contacts
...
// FREEBIE
10 years ago
lilia
7f4ef6e9e7
Remove double-check of unread count
...
This same condition is already enforced in the markRead method.
// FREEBIE
10 years ago
lilia
1c70293bba
Remove global updateInbox method
...
This operation now needs to be done exactly once, at startup, so we
don't need to expose a global method for it.
// FREEBIE
10 years ago
lilia
6364cda7cb
Create requires an object
...
// FREEBIE
10 years ago
lilia
78d7296f84
Fix tests
...
// FREEBIE
10 years ago
lilia
b617240338
Stop calling updateInbox all the time
...
Now that the inbox collection keeps itself in sync, we don't have the
data duplication that was forcing us to reload constantly.
// FREEBIE
10 years ago
lilia
537f0ceef0
Log all http requests at start and end
...
// FREEBIE
10 years ago
lilia
0017f196ef
Move ConversationController to its own file
...
Encapsulate the global conversation cache collection against accidental
access, avoiding the data-clobbering bug fixed in previous commit.
Also move some one-off program initialization code from panel controller
to background.js
// FREEBIE
10 years ago
lilia
8f28c3af68
Fix disappearing contact info
...
This errant reference to the global cache of conversations was causing
some contacts to get clobbered.
// FREEBIE
10 years ago
lilia
93a5d01127
Delete old code
...
We don't have any more 'default' css classes. Default avatar data is
simply provided by a model for rendering in a view.
// FREEBIE
10 years ago
lilia
2bc65c2ab4
Let messages fetch references to senders
...
The conversation's contactCollection only contains references to the
current membership, and will not provide contact info for people who
have left the group, causing their messages to render without numbers or
avatars.
// FREEBIE
10 years ago
lilia
fd29ac8d2c
Promote groups to top of inbox when we update them
...
// FREEBIE
10 years ago
lilia
73983118dc
Render emoji in conversation title // Fixes #359
...
// FREEBIE
10 years ago
lilia
6f94888659
Use online event listener to reconnect more smrtly
...
No need to retry if we know we're offline.
// FREEBIE
10 years ago
lilia
37998e261d
Log more errors
...
// FREEBIE
10 years ago
lilia
36ec4300cf
Fix broken group avatar preview
...
Fixes #355
// FREEBIE
10 years ago
lilia
b60d3d0b97
Make debug log handle multiple arguments
...
Ex: console.log('delivery receipt', phone_number, timestamp)
// FREEBIE
10 years ago
lilia
90e9216e19
Add UI for submitting debug logs
...
Fixes #343
// FREEBIE
10 years ago
lilia
9809894fd2
Automatically mark the open conversation read
...
If a conversation view is visible, it will automatically mark the
conversation read.
// FREEBIE
10 years ago
lilia
15a366dbf0
Opening a conversation should focus the window
...
Previously, this function might open the conversation but not show the
window, if it exists but wasn't on top.
// FREEBIE
10 years ago
lilia
a57451d00b
Show notifications if the window is minimized
...
// FREEBIE
10 years ago
lilia
f74a7b9621
Add code for submitting debug logs
...
We keep the last 1000 log messages in memory and dump them to an
anonymous public gist if console.post is called.
// FREEBIE
10 years ago
lilia
fa0e2584f4
Fix new threads not appearing at top of inbox
...
When messages from someone not in your inbox arrived, that thread would
appear at the bottom of the inbox instead of the top.
// FREEBIE
10 years ago
lilia
df99da15c6
Mark relevant convos active/unread on key conflict
...
// FREEBIE
10 years ago
lilia
15d84199c2
Include ourselves in member list for a new group
...
Otherwise, the next incoming group update will show "<your number>
joined the group".
// FREEBIE
10 years ago
lilia
8b27c99f2b
Fix exception while creating a conversation
...
When confirming the creation of a one on one conversation with a new
contact, the first click would do nothing but the second click would
work. Now the first click works.
Fix by only reject new conversation creation if not saved.
// FREEBIE
10 years ago
lilia
4b0c70fb44
Resolve multiple conflicts independently
...
When resolving multiple conflicts in a conversation, failure to resolve
one should not block any others.
// FREEBIE
10 years ago
lilia
299bd45cea
Add background color on key verification screen
...
// FREEBIE
10 years ago
lilia
f8745e1e5b
Remove inactive models from inbox collection
...
Fixes auto archive when deleting all messages, and auto unarchive when
sending a new message. Previously, the convo would not reappear in the
inbox after deleting all messages.
// FREEBIE
10 years ago
lilia
80764bf494
Remove unused function
...
// FREEBIE
10 years ago
lilia
a390e37abc
Fixup change:active_at handling when setting null
...
When a conversation goes from active to not active, it should be removed
the view rather than promoted.
// FREEBIE
10 years ago
lilia
712cad352c
Restyle new-contact element
...
Bring it into line with the style of the other contacts.
// FREEBIE
10 years ago
lilia
b81d93177a
Fix double selected states
...
Previously, when changing selection from an unread to a read
conversation, the unread conversation would not be deselected.
// FREEBIE
10 years ago
lilia
50add90fd9
Include image previews in notifications
...
// FREEBIE
10 years ago
lilia
d89e3ccdc4
Don't fetch messages from the background
...
Only fetch them from a frontend view. If the conversation is not open,
we don't need to load the messages, and if we do load them, they will
render before we've done the initial contact info loading (as
implemented in 74e96ce).
Fixes #344
// FREEBIE
10 years ago