Commit Graph

2289 Commits

Author SHA1 Message Date
Matthew Chen
df7acfeed3 Simplify OWSPreferences access. 2018-09-07 16:28:21 -04:00
Matthew Chen
cc117b385c Modify environment accessors to use our 'shared' convention. 2018-09-07 16:20:59 -04:00
Matthew Chen
3a12446be8 Modify environment accessors to use our 'shared' convention. 2018-09-07 16:20:41 -04:00
Matthew Chen
b642a5fabe Update log. 2018-09-07 16:13:06 -04:00
Matthew Chen
cfb511aa57 Respond to CR. 2018-09-07 16:00:32 -04:00
Matthew Chen
eb616a3411 Respond to CR. 2018-09-07 15:37:40 -04:00
Matthew Chen
399dd13cee Add test app context; use mock "document" and "shared data container" directories in tests, use mock keychain storage in tests. 2018-09-07 15:37:40 -04:00
Matthew Chen
f9eab5cd24 Merge remote-tracking branch 'origin/release/2.29.2' 2018-09-07 15:27:50 -04:00
Michael Kirk
01a6a3d98e avoid overflow in debug logging 2018-09-07 11:02:52 -06:00
Michael Kirk
c7662b5a86 Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics
Going forward, we want to prefer safer asserts, but we don't want to blindly
apply crashing asserts across the codebase
2018-09-07 10:00:48 -06:00
Matthew Chen
1c325cd210 Respond to CR. 2018-09-06 16:03:29 -04:00
Matthew Chen
b1f2b9e75c Clean up thumbnail-related logic. 2018-09-06 16:03:29 -04:00
Matthew Chen
dc3467dcda Tidy up attachment usage. 2018-09-06 16:03:29 -04:00
Matthew Chen
0be12da3dd Use thumbnails in media views. 2018-09-06 16:03:29 -04:00
Matthew Chen
5d96af98bc Use large thumbnail in media views. 2018-09-06 16:03:29 -04:00
Matthew Chen
30ed6caf06 Use thumbnails as video stills in conversation view. 2018-09-06 16:03:29 -04:00
Matthew Chen
a2fad57964 Load GIFs from disk in media view; don't cache GIF data in memory. 2018-09-06 16:03:29 -04:00
Matthew Chen
12307aeeed Load GIFs from disk in media view; don't cache GIF data in memory. 2018-09-06 16:03:29 -04:00
Matthew Chen
ad0d094831 Fix build breakage. 2018-09-06 15:30:00 -04:00
Matthew Chen
748b243156 Restore full-screen thumbnails. 2018-09-06 15:30:00 -04:00
Matthew Chen
8748dc9b2e Modify new thumbnail system to include video and GIF thumbnails. 2018-09-06 15:30:00 -04:00
Matthew Chen
206432fdf0 Add failure methods to thumbnail service. 2018-09-06 15:30:00 -04:00
Matthew Chen
cf469da943 Use new thumbnails in conversation cells. 2018-09-06 15:30:00 -04:00
Matthew Chen
3437361d70 Use new thumbnails in media gallery thumbnails. 2018-09-06 15:30:00 -04:00
Matthew Chen
446ceb2b9c Rename AttachmentStream methods. 2018-09-06 15:30:00 -04:00
Matthew Chen
498828f93c Rename AttachmentStream methods. 2018-09-06 15:30:00 -04:00
Matthew Chen
44a3a81469 Update logging and asserts in hotfix changes. 2018-09-04 16:12:41 -04:00
Michael Kirk
5d9cd86d13 size toolbar WRT draft 2018-09-04 10:38:43 -06:00
Matthew Chen
fac7f6932f Rename TSGroupMetaMessage enum values. 2018-09-04 09:30:01 -04:00
Matthew Chen
f4d1f25656 Merge remote-tracking branch 'origin/release/2.29.1' 2018-09-04 09:27:41 -04:00
Michael Kirk
2cdca0299c show generic file icon for invalid GIF 2018-08-30 20:49:31 -06:00
Michael Kirk
e715bf9ea2 image sizing
Validate image sizing
2018-08-30 19:21:38 -06:00
Matthew Chen
7df8976559 Fix breakage in production builds. 2018-08-30 10:07:34 -04:00
Matthew Chen
1cc0fbcb12 Elaborate logging around 'perform updates' crash. 2018-08-28 15:41:58 -04:00
Matthew Chen
9477606732 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen
f473f60111 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen
cc5a480baa Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen
03829779cc Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen
c0d486b1f1 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen
3a50377902 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen
713606271c Rename fail macros in Obj-C. 2018-08-27 10:29:51 -04:00
Matthew Chen
5b50e81b4f Rename fail macros in Swift. 2018-08-27 10:27:48 -04:00
Matthew Chen
7be8f30877 Apply -> Never. 2018-08-27 10:21:03 -04:00
Matthew Chen
d4f7b5d45b Respond to CR. 2018-08-27 10:02:28 -04:00
Matthew Chen
f34bdd34bc Respond to CR. 2018-08-27 10:02:28 -04:00
Matthew Chen
e1049fdfcc Respond to CR. 2018-08-27 10:02:28 -04:00
Matthew Chen
cf6f3841a8 Apply new Swift logging. 2018-08-27 10:02:28 -04:00
Michael Kirk
7e8b2e3034 Faster conversation presentation.
There are multiple places in the codebase we present a conversation.

We used to have some very conservative machinery around how this was done, for
fear of failing to present the call view controller, which would have left a
hidden call in the background. We've since addressed that concern more
thoroughly via the separate calling UIWindow.

As such, the remaining presentation machinery is overly complex and inflexible
for what we need.

Sometimes we want to animate-push the conversation. (tap on home, tap on "send message" in contact card/group members)
Sometimes we want to dismiss a modal, to reveal the conversation behind it (contact picker, group creation)
Sometimes we want to present the conversation with no animation (becoming active from a notification)

We also want to ensure that we're never pushing more than one conversation view
controller, which was previously a problem since we were "pushing" a newly
constructed VC in response to these myriad actions. It turned out there were
certain code paths that caused multiple actions to be fired in rapid succession
which pushed multiple ConversationVC's.

The built-in method: `setViewControllers:animated` easily ensures we only have
one ConversationVC on the stack, while being composable enough to faciliate the
various more efficient animations we desire.

The only thing lost with the complex methods is that the naive
`presentViewController:` can fail, e.g. if another view is already presented.
E.g. if an alert appears *just* before the user taps compose, the contact
picker will fail to present.

Since we no longer depend on this for presenting the CallViewController, this
isn't catostrophic, and in fact, arguable preferable, since we want the user to
read and dismiss any alert explicitly.

// FREEBIE
2018-08-24 08:54:23 -06:00
Michael Kirk
464b854eb1 CR: follow naming conventions 2018-08-23 10:38:54 -06:00
Michael Kirk
9c9f3875a7 Link styling 2018-08-23 10:38:20 -06:00