Commit graph

942 commits

Author SHA1 Message Date
Matthew Chen
435a42bb3c Hide the edit menu for attachment until they are uploaded.
// FREEBIE
2017-04-11 18:07:38 -04:00
Matthew Chen
0a8c9e5622 Respond to CR.
// FREEBIE
2017-04-11 18:04:44 -04:00
Matthew Chen
4e3fbac107 Add explanation messages to the “block user alert” and the block section of the 1:1 conversation settings view.
// FREEBIE
2017-04-11 18:00:01 -04:00
Matthew Chen
f503d7f93c Stay scrolled to the bottom during in conversation view during updates.
// FREEBIE
2017-04-11 17:46:28 -04:00
Matthew Chen
ec129ea217 Improve attachment upload progress indicator.
* Should never show up for attachments in the failed state.
* Show show up without delay for attachments being sent.
* Show disappear when attachment upload fails in any way.

// FREEBIE
2017-04-11 17:41:05 -04:00
Michael Kirk
032cf0d953 sharing via message view is legible
// FREEBIE
2017-04-11 15:40:17 -04:00
Michael Kirk
811a4ac4b5 add some missing asserts
// FREEBIE
2017-04-11 15:40:17 -04:00
Michael Kirk
ca768d071a repeat phone number in header, next to back button
1. Putting it near the back-button suggests the user can change it by
   going back.

2. The existing title "Verify" didn't add any value.

// FREEBIE
2017-04-11 13:34:47 -04:00
Michael Kirk
fb53a3258d clarify what to do on the verification screen
// FREEBIE
2017-04-11 13:34:47 -04:00
Michael Kirk
91fc6b4d04 Stretch to fit wider message counts
// FREEBIE
2017-04-10 19:31:40 -04:00
Michael Kirk
9bd2ff0572 Don't repaint back-button unread badge
There's not much benefit to this being done async, and making it sync
avoids the repaint.

Also, simplified the code around drawing the badge.

// FREEBIE
2017-04-10 19:04:14 -04:00
Michael Kirk
6b0eb7f9b5 Use numeric pad for verifiation code entry
No need for special phone characters like: *, -, +

// FREEBIE
2017-04-10 19:01:10 -04:00
Matthew Chen
6fde2852b1 Respond to CR.
// FREEBIE
2017-04-10 12:44:03 -04:00
Matthew Chen
dc78e32bbf Reload data and invalidate layout whenever message view will appear.
// FREEBIE
2017-04-10 12:42:37 -04:00
Matthew Chen
a93aad5124 Respond to CR.
// FREEBIE
2017-04-07 13:03:22 -04:00
Matthew Chen
4cd1684ded Don’t let user block themselves.
// FREEBIE
2017-04-07 13:02:30 -04:00
Matthew Chen
372d6b9bfd Don’t let user block themselves.
// FREEBIE
2017-04-07 13:02:30 -04:00
Matthew Chen
1ab4417687 Fix paste when pasteboard has multiple items.
// FREEBIE
2017-04-07 12:04:04 -04:00
Matthew Chen
27aeb425e4 Round avatar icons.
// FREEBIE
2017-04-07 11:58:15 -04:00
Matthew Chen
3ac1e75b5f Ensure keyboard doesn't hide "safety numbers changed" interaction.
// FREEBIE
2017-04-07 11:54:42 -04:00
Matthew Chen
5feca42821 Reformat phone number if user changes country code.
// FREEBIE
2017-04-07 11:52:21 -04:00
Michael Kirk
6ba5e5cc6b Clean up session-reset logging
// FREEBIE
2017-04-07 10:19:40 -04:00
Michael Kirk
d8ae941736 Delete session *before* sending EndSession message
Typically we're sending an EndSession message because our session has
diverged from the remote party's session. So if we send an EndSession
message, but decrypt it with our old out-of-sync session, how can we
expect them to be able to decrypt it?

Instead, by deleting the existing sessions, we'll fetch a new PreKey,
and start fresh with the remote side.

// FREEBIE
2017-04-06 21:09:56 -04:00
Michael Kirk
9d0c76ca56 debug action to reset session
// FREEBIE
2017-04-06 21:09:56 -04:00
Michael Kirk
033591aeca Remove unused code
// FREEBIE
2017-04-06 21:09:56 -04:00
Michael Kirk
caabae0024 Add new debug method to delete session
// FREEBIE
2017-04-06 21:06:13 -04:00
Michael Kirk
398ee22f50 [SSK] rename cipher queue to sessionStoreQueue
// FREEBIE
2017-04-06 21:06:13 -04:00
Michael Kirk
a951d11d97 [SSK] move iOSVersion to SSK
// FREEBIE
2017-04-06 21:06:13 -04:00
Matthew Chen
554125aeeb Dismiss keyboard if user scrolls in “new 1:1 conversation” view.
// FREEBIE
2017-04-06 21:00:59 -04:00
Michael Kirk
cc16b9c893 CR nit: add assert
// FREEBIE
2017-04-06 20:59:07 -04:00
Matthew Chen
19d8f6cf01 Improvements around contact cells.
* Improve handling of accessory views/types.
* Use contact cell in “new/edit group” view.
* Don’t hide blocked contacts and group members in “new/edit group” view.
* Let users “unblock-to-add” blocked contacts in “new/edit group” view.

// FREEBIE
2017-04-06 20:59:07 -04:00
Matthew Chen
74820d9ba9 Respond to CR.
// FREEBIE
2017-04-06 15:30:21 -04:00
Matthew Chen
a1bd2f66f8 Fix invalid assert in the OWS table views.
// FREEBIE
2017-04-06 12:07:51 -04:00
Matthew Chen
fd86495e26 Respond to CR.
// FREEBIE
2017-04-06 11:57:08 -04:00
Matthew Chen
8823b2884a Refine the “block list” view.
// FREEBIE
2017-04-05 21:58:51 -04:00
Matthew Chen
b5562fa126 Update “new 1:1 conversation” view.
* Don’t hide blocked users.  If selected, user needs to unblock to start conversation.
* Add “you have no contacts” indicator.
* Activate “block state indicator” in contact cell.

// FREEBIE
2017-04-05 21:39:15 -04:00
Matthew Chen
8867b2882e Tweak appearance of contact cell.
// FREEBIE
2017-04-05 21:37:26 -04:00
Matthew Chen
b6f944f3d3 Tweak appearance of “add to block list” view.
// FREEBIE
2017-04-05 21:37:07 -04:00
Michael Kirk
4494a95a62 Block list is two words. Update code/comments/constants
// FREEBIE
2017-04-05 17:37:08 -04:00
Michael Kirk
78705d3ac1 right align blocked indicator
// FREEBIE
2017-04-05 17:23:23 -04:00
Matthew Chen
e0c7457eca Refine appearance of “add to block list” view.
// FREEBIE
2017-04-05 13:47:56 -04:00
Matthew Chen
b3d6a82c4f Show blocked users in “add to block list” view.
// FREEBIE
2017-04-05 13:27:29 -04:00
Matthew Chen
f56227ce26 Respond to CR.
// FREEBIE
2017-04-05 12:22:35 -04:00
Matthew Chen
af6e51f83c Make local copy of contact list.
// FREEBIE
2017-04-05 12:18:44 -04:00
Matthew Chen
54e6d4400c Multiple improvements around contacts and the blocklist.
* Hide blocked users and current user in “new 1:1 conversation” view.
* Hide blocked users and current user in “new/edit group conversation” view.
* Hide blocked users and current user in “add to blocklist” view.
* Hide blocked users and current user in “blocklist” view.
* Improve thready safety around contact changes in views.

// FREEBIE
2017-04-05 12:18:44 -04:00
Matthew Chen
7273e6faa5 Respond to CR.
// FREEBIE
2017-04-05 12:18:01 -04:00
Matthew Chen
7f21a1bf62 Dismiss “block state indicator” if user scrolls message view.
// FREEBIE
2017-04-05 12:18:01 -04:00
Matthew Chen
c500e7890f Improve completion handling of block actions.
// FREEBIE
2017-04-05 12:18:01 -04:00
Matthew Chen
9c9060203e Block actions in message view for blocked group conversations.
* Add block status indicator view.

// FREEBIE
2017-04-05 12:18:01 -04:00
Matthew Chen
8c347699bb Block actions in message view for blocked contact conversations.
// FREEBIE
2017-04-05 12:18:01 -04:00