Commit Graph

4603 Commits

Author SHA1 Message Date
Nora Trapp
de0522586a Add the ability to opt out of PINs. 2020-07-09 18:46:17 -07:00
Matthew Chen
5ddf65262d Clean up message bubble measurement. 2020-07-08 08:14:29 -07:00
Nora Trapp
29baae108f Fix swipe-to-reply on new borderless messages 2020-07-08 08:13:48 -07:00
Nora Trapp
8d9a692342 Adjust jumbomoji sizing 2020-07-08 08:13:39 -07:00
Nora Trapp
f1fe3dbdc6 Fix borderless jubomoji with quotes, etc. 2020-07-08 08:13:39 -07:00
Matthew Chen
f070a0e479 Clean up naming around profile fetches. 2020-07-08 11:10:37 -03:00
Nora Trapp
a84f3af528 Jumbomoji messages should render without bubble 2020-07-06 16:06:02 -07:00
Nora Trapp
05d6b57616 Render memoji, bitmoji, etc. as stickers 2020-07-06 11:43:35 -07:00
Nora Trapp
34d941700b Reject incoming calls unless the caller is approved 2020-07-06 11:41:28 -07:00
Matthew Chen
572845ecdc Expose gv2 debug flags via "testing" view. 2020-07-06 11:48:26 -03:00
Matthew Chen
19d04ffe71 Add flags view to internal builds. 2020-07-06 11:48:26 -03:00
Henry Jones
af27a92c35 Add accessible actions to fix #4480 where VoiceOver users could not access archive or delete action. 2020-07-01 19:01:05 -07:00
Nora Trapp
7d02916395 Fix pin reminder behavior 2020-07-01 18:31:55 -07:00
Matthew Chen
26dd52144e Add debug UI to send a group update. 2020-07-01 16:56:59 -03:00
Matthew Chen
3d3577f2e2 Add Debug UI to send v1 group updates that kick everyone but the local user. 2020-07-01 16:55:39 -03:00
Michelle Linington
2bbdb14cdb Adopting some PR feedback:
- Remove explicit "self."
- Add comment going into detail about the UIKit behavior we're working
  around
- Remove force-unwrap from assert. It's safe, but eyebrow raising

Also fixed a minor bug I found:
percentOfIndexPathVisibleAboveBottom is explicitly checking "above the
bottom". Rect intersection is pretty, but if a single cell extended
above the top and bottom margins it would return an incorrect value.
I'm not sure if this is possible, but it's still incorrect.

Instead, this mostly reverts to the original behavior, comparing the top
of the cell frame with the bottom of the content frame. It leverages the
new function to compute the visibleContentRect to do so.
2020-07-01 09:41:31 -07:00
Michelle Linington
c9e1b3dedb Fix compilation failure due to rebase
s/lastSortId/lastSortIdInLoadedWindow
2020-07-01 09:41:31 -07:00
Michelle Linington
753aabb829 IOS-605: ScrollDownButton continues to remain visible after jumping to bottom
This fixes a bug where the ScrollDownButton would continue to persist
even after jumping to the bottom.

This is due to undefined ordering in UIKit with how it handles
scrollViewDidScroll: and updating the collectionView's visible index
paths. We'd receive the final scrollViewDidScroll: before the visible
items were updated.

To fix this, we need to figure out what cell's are visible without
relying on UICollectionView's cell appearance to be up to date. This
instead uses the collection view layout's cell frames to determine if
they live in the visible content rect of the collection view. Since
layout must be available for the cell to be visible, this should be
correct.

Made some other minor changes around naming. Clarified that lastSortId
and lastIndexPath refer to the viewmodel's loaded window, not the
global thread state.
2020-07-01 09:41:31 -07:00
Matthew Chen
f6d5342765 Merge remote-tracking branch 'private/release/3.12.1' 2020-06-25 20:00:08 -03:00
Nora Trapp
6b53eb5ae8 Always re-create the message request dialog if necessarry, since the type of request may have changed 2020-06-25 19:05:09 -03:00
Nora Trapp
5b102b9b5a Fix scroll to typing indicators 2020-06-25 19:05:09 -03:00
Nora Trapp
fc63f37329 New safety number sheet 2020-06-25 19:04:12 -03:00
Nora Trapp
e480d75029 Adjust ActionSheetController dark theme style 2020-06-25 19:04:12 -03:00
Nora Trapp
647bc8533e Update message footer to indicate when partially sent 2020-06-25 19:04:12 -03:00
Michelle Linington
22926a5bff IOS-604: Stale index path used in -[ConversationViewController scrollToBottomAnimated:]
Our target index path should be determined after updating the
ConversationViewModel's window.

A more robust solution might involve pinning the bottom page to *always*
be loaded in the ConversationViewModel. But for now, this should fix the
assertion.
2020-06-25 10:35:27 -07:00
Matthew Chen
43f568cb9f Merge remote-tracking branch 'private/release/3.12.0' 2020-06-24 15:06:49 -03:00
Matthew Chen
09c0040be7 Enable versioned profiles in production. 2020-06-24 10:40:44 -03:00
Nora Trapp
9475ae2c7a Add a notification setting controlling whether muted threads are included in the badge count 2020-06-23 20:34:08 -07:00
Nora Trapp
3d0bf09292 Remove unnecessary unread count calculation 2020-06-23 20:34:08 -07:00
Nora Trapp
6577b6906e Always scroll focus message / unread marker as close to top as possible 2020-06-23 20:34:08 -07:00
Nora Trapp
a162c779b3 Fix scroll to top logic 2020-06-23 20:34:08 -07:00
Drew Volz
056ebce5d6 Fix the image picker's dismissal animation of the collection view
The image picker was not quite dismissing a view but rather it was
restoring it to fill the screen's frame by updating the offset. This
change updates the frame.origin.y of the collection view's frame to
account for the height of the view's height. This gives us an animation
that pushes the view off-screen as we'd expect before the controller
removes the view altogether.
2020-06-23 20:08:45 -07:00
Tomislav Eric
df27e5c73b Fix: empty string activates send button 2020-06-23 19:53:34 -07:00
Andrew Breckenridge
7b946fe1cd Make New Messages header in conversation view multi-line 2020-06-23 19:19:10 -07:00
Nora Trapp
8ad51f4f14 Restore cancel button on add to contacts sheet 2020-06-23 19:07:16 -07:00
decanus
0bfa38c51a Refactor AddToContactViewController 2020-06-23 19:07:00 -07:00
Matthew Chen
ee23ade45a Safer group model diffs. 2020-06-23 11:27:10 -03:00
Matthew Chen
b18ea23bf2 Respond to CR. 2020-06-23 10:17:15 -03:00
Matthew Chen
6acdeacdb9 Tweak conversation view configuration. 2020-06-23 10:16:38 -03:00
Matthew Chen
2e27e34f79 Avoid double-measurement in conversation cell configuration. 2020-06-23 10:16:38 -03:00
Nora Trapp
086a65ff7c Consolidate conversation scrolling logic 2020-06-19 11:54:31 -07:00
Matthew Chen
7d12df6273 Order 'new member bar' by order added. 2020-06-19 02:19:02 -03:00
Nora Trapp
8b7772c7b8 Fall forward if there are no messages to fall back to when preserving scroll position 2020-06-18 16:25:04 -07:00
Nora Trapp
6105795cb3 PR Feedback 2020-06-18 16:25:04 -07:00
Nora Trapp
d0534ea642 Preserve conversation scroll position 2020-06-18 16:25:04 -07:00
Nora Trapp
cecc57b82b Merge branch 'release/3.11.0' 2020-06-18 10:27:24 -07:00
Nora Trapp
60c65ea4e1 Use sent time on unread indicator cell 2020-06-18 10:21:52 -07:00
Matthew Chen
a4ae58c0f6 Respond to CR. 2020-06-18 12:09:42 -03:00
Matthew Chen
179ecaf258 Cache threads, interactions, attachments. Improve model cache. 2020-06-18 12:05:07 -03:00
Matthew Chen
3cedd3ccdf Overhaul database observation. 2020-06-18 09:28:49 -03:00