Commit Graph

251 Commits (a66c8794261388fd903b15c2b7908b51db08137f)

Author SHA1 Message Date
lilia 3e73282a64 Fix key verification screen 11 years ago
lilia e2eff893d4 Fix 'Delete messages'
Replaces window.confirm with generic promise-based confirmation dialog
functionality available to all views.

// FREEBIE
11 years ago
lilia 8a17953468 Display sent_at timestamps instead of received_at 11 years ago
lilia 3e39271220 Render messages light blue until finished sending // Fixes #219 11 years ago
lilia 53a9ab4834 Fix bugs with handling large image attachments
* Avoid infinite loop scaling too-big images
* Don't crash if no file is selected
* Fix file size toast

Fixes #242

// FREEBIE
11 years ago
lilia d8f17f9631 Fixes #240
Delete files attached via chrome.fileSystem

// FREEBIE
11 years ago
lilia 7bf1d41184 Render conversation titles 11 years ago
lilia d0a529351c Fix sending messages with no attachments 11 years ago
lilia a5e80e8a5a Really close conversation windows
Only the inbox should hide when closed.
11 years ago
lilia 5d3a2a4cc8 Fix file inputs
As a chrome app we are obligated to use the fileSystem api, and must do
so via the window in which we want to open the dialog.
11 years ago
lilia 39d11d8eb3 Apply custom chrome to conversation windows 11 years ago
lilia 95f8e3921c Keep inbox window open, but allow it to be hidden
As a chrome packaged app, we have to keep at least one window open in
order to maintain our websocket connection in the background page.

This change replaces the system window frame with custom buttons in the
inbox header, such that the 'close' button merely hides the window
rather than unloading it.

Fixes #237
FREEBIE
11 years ago
lilia 7afd0a02e8 Convert beforeunload listeners 11 years ago
lilia 76e170686a Make getBackground async 11 years ago
lilia f774047935 Make libtextsecure group storage asynchronous 11 years ago
lilia 20ebc3f890 Move identity key storage functions to axolotl store 11 years ago
lilia 71715c95bc Async remove identity 11 years ago
lilia de65f9e6bd Add missing resolve 11 years ago
lilia 5d4298697c Use view.$ shorthand for scoped jquery searches
Wish I'd noticed that one earlier. http://backbonejs.org/#View-dollar
11 years ago
Matt Corallo 454b4726bd Replace load/decode/index around our own number with helpers 11 years ago
lilia 923bb8bbc9 Fix crash in message detail view
Fix crash when there's no contact for a group member.
11 years ago
lilia e8cb4efaa4 Allow key conflict resolution for group updates
Creating a group with a member who's identity key has changed would
previously fail silently. Now, we catch and save the error, allowing the
same conflict resolution process as with regular messages.

Fixes #205
11 years ago
lilia 4bd46f80e7 Allow empty group avatar file input 11 years ago
lilia ce36c36bd0 Include outgoing control messages in message history
So you know it worked.
11 years ago
lilia 6c3ac2de02 Collapse two views into one
We used to have a subview that branched on content/control messages, but
no more.
11 years ago
lilia caddb8dc09 Smoother group create experience
Previously there was a long pause between confirming the group details
and opening the conversation. Fix by first saving/opening the
conversation, rather than waiting for the initial group update to finish
transmitting.
11 years ago
lilia 74e01c2a95 Re-render control messages if necessary 11 years ago
lilia 48b0e8832d Fix message detail contacts for incoming group message
Previously the From-field displayed all the group contacts.
11 years ago
lilia bd82591b6c Remove extraneous listener 11 years ago
lilia a7079206f4 Nicer looking end-session and group control messages 11 years ago
lilia 20baa795ad Fixes #198 Squished avatars
Refactor all avatar views to use a shared partial, then change it to a
background image. Requires allowing unsafe-inline styles in the CSP.
11 years ago
lilia 5ffa265559 Revert "Popout inbox"
This reverts commit 31e7d285e3.

This seemed like a nice feature, but the popup bubble isn't very
conducive to nontrivial user inputs, e.g. file inputs.

Fixes #211
11 years ago
lilia c526dbda5f Set up production build task
`grunt copy`

Closes #191
11 years ago
lilia 43ec4099c9 Reset the name field on new group form 11 years ago
lilia 9930937707 Move handlePushMessageContent to message model
And retool message handling flow to helps us avoid instantiating
duplicate message and conversation models.
11 years ago
lilia 897d391817 Improve identity key conflict ux
Clicking on a key conflict message opens the message detail view,
which displays the contact(s) in this conversation. If the message
contains a key conflict with any of these contacts, a button is
displayed which attempts to resolve that conflict and any other
conflicts in the conversation that are related to that contact.
11 years ago
lilia 31e7d285e3 Popout inbox
Rather than opening the inbox in its own window, let it appear as a
browser action popup by default, but allow promotion to its own window
if requested.
11 years ago
lilia cecb438a52 Simplify avatar rendering 11 years ago
lilia f86d6d51e3 Only init emoji map once.
`emoji.init_colons` creates and populates `emoji.map.colons`, a global
map from common names to emoji code points. It's safe to call
repeatedly, but unecessary.
11 years ago
lilia 651b6341fa Unbind frontend listeners when window closes 11 years ago
lilia 69d5a6a33c Improve group update ui/ux
Promote group update to its own screen. Add typeahead contact selector
from new conversation view. Restyle to match android (more or less).

Closes #186
11 years ago
lilia d20e23402d Refactor RecipientsInputView from NewConversationView
For reuse on group update screen.
11 years ago
lilia 36319d6458 Fix crash when sending :invalid_emoji: 11 years ago
lilia f1309b71c1 Don't scale or compress gifs
If a gif is too large, it's too large.

Fixes #196
11 years ago
lilia 8e54aa1401 Plumb contact avatars into conversations 11 years ago
lilia 019a9d1fbc Unread counts
Update unreadCounts per-conversation on incoming messages. Render unread
conversations with font-weigh: bold in the inbox view.

To ensure that the inbox and conversation views remain in sync, the
background page now ensures that the same models objects are used for
both views.
11 years ago
lilia ed707db4ba Support :emoji_name: syntax for emoji text input 11 years ago
lilia 254131488e Render emoji in conversation and inbox views. 11 years ago
lilia c73f4d71a7 DRY up scrollable pattern
Switch to using gutter class instead of id since there is potentially
more than one usage on the page.
11 years ago
lilia a72ea7966d Clean up inbox/compose view rendering and swapping
Templatize the inbox view and use the same pattern for in-window view
switching as is now used with the conversation/message detail views.
This means doing more with markup and less jquery manipulation of
individual subelements of the inbox view.
11 years ago