Commit Graph

214 Commits

Author SHA1 Message Date
Jordan Rose
34d2ed47f1 MediaGallery: handle new messages coming in by reloading
The tile view will only reload the sections that changed. The page
view will reload its current item. This is necessary to keep the
MediaGallery model in sync with the database, but as a side benefit it
also means the All Media view gets live updates as new messages come
in.
2021-03-04 10:30:54 -08:00
Jordan Rose
3b90f1b761 MediaGallery: Filter recently-deleted items from database queries
And rewrite and simplify the rest of deletion logic appropriately.
(Thanks to Nora for the strategy.)

There is one tough case here: database updates have happened
/externally/ (say, from a disappearing message expiring), in which
case the database will be updated but the MediaGallery model will not.
In this case we've broken the invariant that we have the correct count
for each month-section, and need to put a hold on database access
until the model has been updated. The only effect of this is in the
page-based media VC, where we'll exit out of the browser rather than
advancing to the next item if the item we were looking at was deleted
/and/ the next item hasn't been loaded yet. (This can happen if you're
at the start of a message with many items and the whole message gets
deleted.)
2021-03-04 10:30:54 -08:00
Jordan Rose
493e99eb8d Don't expose a CVComponentView to the CVComponentDelegate
Instead of the delegate showing the share sheet for a tapped-on
attachment, let the CVComponentGenericAttachment do it itself. This
keeps the delegate from dealing with any specific component views
within the conversation.
2021-02-17 11:43:22 -08:00
Matthew Chen
30f14b0d0d Fix issues around message details view. 2021-01-22 23:23:48 -03:00
Nora Trapp
d0da9422ec System message wallpaper styling. 2021-01-21 17:00:17 -08:00
Michelle Linington
f996a732d8 Show tapped avatar in conversation settings full screen 2021-01-21 16:17:24 -08:00
Jordan Rose
d00674a33c Show the Share sheet if a file attachment doesn't support Quick Look
This restores the old behavior if Quick Look isn't going to be
helpful.
2021-01-16 13:23:37 -08:00
Nora Trapp
806dbd7257 Replace decryption errors with single 'session refresh' message 2021-01-12 16:45:35 -08:00
Matthew Chen
e1b78ac0f5 Add auto-download settings for media. 2021-01-12 19:28:15 -03:00
Matthew Chen
6f3c92dedd Add auto-download settings for media. 2021-01-12 19:28:15 -03:00
Matthew Chen
68b68fdf04 Group link promotion. 2021-01-12 15:51:38 -03:00
Jordan Rose
ce07035c62 Use Quick Look for interacting with generic attachments 2021-01-11 14:45:49 -08:00
Matthew Chen
8e1ed4d307 Fix the body media dismiss animations. 2020-12-11 16:49:14 -03:00
Matthew Chen
151e1158a9 Rename CVItemViewModel, CVItemViewModelImpl. 2020-12-11 16:49:14 -03:00
Matthew Chen
200aec4d7a Merge CVItemViewModel and CVItemViewModelImpl. 2020-12-11 16:49:14 -03:00
Matthew Chen
111338b59d Rewrite conversation view. 2020-12-10 12:44:13 -03:00
Matthew Chen
66510bc18f DRY singleton accessors. 2020-09-17 21:13:14 -03:00
Nora Trapp
1307d7bfd9 Merge branch 'release/3.16.0' 2020-09-02 17:00:36 -07:00
Matthew Chen
0b0c20f3a8 Fix ordering of recipients in message details view. 2020-09-01 18:16:22 -03:00
Matthew Chen
b2e9111ddd Add group invite link action sheet. 2020-09-01 17:25:02 -03:00
Nora Trapp
abac6ab601 Allow expanding truncated messages inline 2020-08-18 00:59:42 -07:00
Matthew Chen
015fb5818a Expose more message details in internal builds. 2020-08-14 09:34:33 -03:00
Nora Trapp
340f8366d9 Allow tapping mentions in message bubbles 2020-08-04 14:09:06 -07:00
Nora Trapp
4696a4d993 Mention sending 2020-08-04 14:08:30 -07:00
Matthew Chen
3cedd3ccdf Overhaul database observation. 2020-06-18 09:28:49 -03:00
Nora Trapp
aab95db806 Strip out message request special casing 2020-06-16 12:28:21 -07:00
Matthew Chen
6628b25542 Throttle message detail view updates. 2020-06-08 12:49:58 -03:00
Nora Trapp
b6f27bc463 Better attachment querying 2020-06-07 09:35:08 -07:00
Matthew Chen
7246c613d5 Fix more build warnings. 2020-04-10 13:17:08 -03:00
Matthew Chen
2fca71e380 Fix build warnings. 2020-04-08 16:05:54 -03:00
Matthew Chen
b42f1968cc Fix build warnings around initializers. 2020-04-08 16:05:54 -03:00
Matthew Chen
2bec0d3ed7 Fix build warnings. 2020-04-08 16:05:54 -03:00
Matthew Chen
b5c069ed95 Clean up VC initializers. 2020-04-08 09:26:25 -03:00
Matthew Chen
e097239dcd Sketch out revised "new group" view. 2020-03-17 10:31:20 -03:00
Michael Kirk
f198d9037d Merge tag '3.5.0.5' 2020-02-19 19:26:05 -07:00
Nora Trapp
aa4101cbd9 Tap a photo to download while there's a pending message request. 2020-02-17 18:39:08 -08:00
Michael Kirk
c62205cb75 remove sticker feature flags 2020-02-12 15:19:56 -07:00
Nora Trapp
70d948843f Remote FF for message requests 2020-02-11 18:27:46 -08:00
Matthew Chen
fb2d4b1744 Use Groups v2 to coordinate disappearing message state. 2020-02-06 10:50:45 -03:00
Nora Trapp
cb72fb8931 Show toast when tapping expired view-once message 2020-01-10 13:04:15 -08:00
Nora Trapp
23ade7954f Add share button for media in message actions, fix message details gallery share 2019-12-16 15:39:02 -08:00
Nora Trapp
6cedc5f4a7 Fix Sticker Pack View blur 2019-12-14 23:05:17 -08:00
Nora Trapp
c667ef54f2 Merge branch 'release/3.0.4' 2019-12-05 16:45:59 -08:00
Nora Trapp
d2cb2b6637 Fix share sheet for iPad 2019-12-05 16:27:45 -08:00
Matthew Chen
ba24e21eb5 Refine sticker pack view presentation on iPad; fix sticker pack view background. 2019-12-04 14:10:45 -03:00
Matthew Chen
5116af899a Message forwarding. 2019-10-24 12:04:25 -03:00
Nora Trapp
fe65655555 Fix message details on iPad + handle orientation changes. 2019-10-23 13:47:21 -07:00
Nora Trapp
9024f2f244 Re-work all media view to support iPad 2019-10-17 12:30:37 -07:00
Nora Trapp
473b88b497 Don't require ConversationViewController to maintain first responder status. 2019-10-17 11:41:58 -07:00
Michael Kirk
95f2d511e1 font updates 2019-09-26 12:20:42 -07:00