lilia
258a872ce3
Trigger update events after attachments load
...
Mostly so we can ensure we're scrolled to the bottom when the
conversation is loaded.
2015-03-03 13:23:55 -08:00
lilia
f9ca13a86f
DRY up audio and video views
2015-03-03 13:05:39 -08:00
lilia
df06499a19
Use blob urls to display attachments
...
Converting attachment data to base64-encoded data uris takes O(n) and
there's no need! URL.createObjectURL returns a magic link that can be
set as the `src` attribute to `img`, `video`, and `audio` tags to load
blob data directly without copying.
https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
2015-03-03 13:05:24 -08:00
lilia
4cefd17ac6
Remove unused view
2015-03-03 10:55:04 -08:00
lilia
9d94bce92a
After clearing messages, leave conversation open
...
Fixes #178
2015-03-03 10:39:10 -08:00
lilia
0778854cc4
Attachments should be in spans, not divs
2015-03-02 18:37:20 -08:00
lilia
1311f7c9ae
Fix attachment previews for audio/video files
2015-03-02 18:27:14 -08:00
lilia
6fe262ceed
Lazy init file input's FileReader
2015-03-02 18:01:59 -08:00
lilia
db7dee9a8a
Fixup file size warning
...
Add contentType-specific limits, switch to lazy-init iff we encounter an
oversized file, and restyle as a toast, factoring out a generic
ToastView along the way.
2015-03-02 17:50:03 -08:00
lilia
ddc0ed1b9a
Add audio and video players
...
Basic implementation using html5 audio/video tags and data URIs.
2015-03-02 15:49:14 -08:00
lilia
aa659877be
Fix broken file input view
2015-03-02 15:35:04 -08:00
lilia
dcc1588219
Add key verification screen
...
Accessible from the menu on private conversations.
2015-02-26 22:26:46 -08:00
lilia
c08c29bd4a
Render group members in the message detail view
...
This requires that we fetch contact info when opening a conversation
so that's available for rendering contact names and avatars.
2015-02-26 13:35:04 -08:00
lilia
fd30dc6f1a
Add message detail view
2015-02-23 14:03:35 -08:00
lilia
368cd2f79a
Refactor back button style
...
Make it easier to reuse these styles.
2015-02-23 12:52:15 -08:00
lilia
55c46d1bb6
Close conversation menu when clicking outside it
2015-02-19 11:55:31 -08:00
lilia
e853c21c98
Remove unused code
...
There is no .settings-btn or .go-back in this view.
2015-02-19 11:00:29 -08:00
lilia
ec43a0b633
jshint all the things
...
Small style fixes here and there. Removed one unused file.
2015-02-19 00:22:23 -08:00
lilia
09704444e9
Fix missing delivery receipt checkmarks
...
The delivered class should be updated on each render to ensure it is
up to date.
2015-02-18 23:57:19 -08:00
lilia
3292177a96
Remove resize logic in favor of pure css
2015-02-18 23:09:34 -08:00
lilia
07e44ccf21
Revisit resize and scroll logic once more
...
Wait a little longer on initial scroll down. Previous timeout sometimes
triggered before all text is finished rendering.
Remove redundant resize calls.
2015-02-18 16:54:43 -08:00
lilia
955ef60292
Fix list_view-related error in background page
...
Background page conversations were trying to trigger events on the inbox
list view which had been destroyed, resulting in a background page
console error of "can't read innerHeight of null".
Avoid this by removing listeners when the inbox window is closed.
2015-02-18 11:26:18 -08:00
lilia
1c589f2fad
Fix list_view.js and message_view.js whitespace
2015-02-18 00:11:35 -08:00
lilia
4716754209
Refactor content message class names
2015-02-18 00:11:35 -08:00
lilia
94c94eb7c9
Refactor message view
...
The message view has three flavors so far, a normal text+attachments
message, a group update, and an end session message. This changeset
extracts the normal message rendering into its own subview, and adds
some convenience functions to the message model in order to simplify
some of that flavoring logic.
2015-02-17 12:07:46 -08:00
lilia
85bec04010
Render leave-group messages correctly
2015-02-16 12:47:36 -08:00
lilia
367421d40a
Style end session messages
...
Also add a missing call to render()
2015-02-13 16:21:39 -08:00
lilia
f00a8f1e81
Render end session messages correctly
2015-02-13 14:25:16 -08:00
lilia
488f25635d
Wire up end session and leave group
...
Closes #136
Closes #137
2015-02-13 14:25:16 -08:00
lilia
85b4643e9b
Fixes #161
...
The first message sent to a new contact was throwing 'Unknown Group'.
This was because we didn't wait for the initial save to sync the `type`
attribute to indexedDB. Instead, don't trigger the conversation to open
until it has finished saving.
2015-02-13 12:57:19 -08:00
lilia
44f9ea5d49
Fix identity key error rendering
2015-02-12 13:36:19 -08:00
lilia
9fe99adf0c
Get scrolling right on conversation load
2015-02-12 13:21:18 -08:00
lilia
f5c7be7d35
Add some resizes
2015-02-12 13:21:18 -08:00
lilia
5a302271b3
Remove unneeded listeners
2015-02-12 13:21:18 -08:00
lilia
0463e385e8
Remove uneeded render
...
This is an artifact of a time when conversation elements would pop in
and out of the dom at a moment's notice, and thus needed to rebind their
event listeners regularly.
2015-02-12 13:21:18 -08:00
lilia
5e064db28f
Render the message list view.
2015-02-12 13:21:17 -08:00
lilia
5ad5464dd1
Fetch messages in the background
2015-02-12 13:21:17 -08:00
lilia
52b3114970
Simplify list view resizing
2015-02-12 13:21:17 -08:00
lilia
44b1e5c88e
Move inbox collection to the background page
...
No more waiting, no more messy fetch logic. Background page
bootstraps the inbox and keeps it up to date.
2015-02-12 13:21:17 -08:00
lilia
a5bc261365
Clear selected files after each sent message
2015-02-12 13:21:17 -08:00
lilia
2de682ef7b
Don't create a group without a name
2015-02-12 13:21:17 -08:00
lilia
d5c85dfbd8
Resize inbox listview after it finishes loading
...
Ensures that scrollbars are properly setup on load.
2015-02-12 13:21:17 -08:00
lilia
4422582ab7
Fixup opening existing private conversations
2015-02-12 13:21:17 -08:00
lilia
200981e022
Avoid adding empty-string numbers to recipients
2015-02-12 13:21:17 -08:00
lilia
3a099657e6
Untangle select vs open events
2015-02-12 13:21:17 -08:00
lilia
9087918500
Don't add new convos to inbox until a message is sent
2015-02-12 13:21:16 -08:00
lilia
af49ad9b90
Dry up new contact init and handling
2015-02-12 13:21:16 -08:00
lilia
63d232dedb
Draw attention to invalid numbers
2015-02-12 13:21:16 -08:00
lilia
746e6530b9
WIP pill view for selected recipients
2015-02-12 13:21:16 -08:00
lilia
5e3ed1658b
Show phone numbers in contact selector
2015-02-12 13:21:15 -08:00