Commit Graph

8663 Commits

Author SHA1 Message Date
Michael Kirk 0f9b0936df Use cached group details when rendering blocklist 2018-09-14 10:31:17 -05:00
Michael Kirk 1f15ba6dc5 Cache group details on blocking manager
In case the group thread is later deleted.
2018-09-14 10:31:17 -05:00
Michael Kirk 8d51839a2a sync translations 2018-09-13 16:42:16 -05:00
Michael Kirk 7b664ee21b update translation comment 2018-09-13 16:39:20 -05:00
Michael Kirk e53766d809 "Bump build to 2.29.3.1." 2018-09-13 09:59:05 -05:00
Michael Kirk b96e9a6a82 Fix: not receiving group deliveries
Previously we were using the wrong method - the local user's id is removed
from group.recipientIdentifiers
2018-09-13 09:57:35 -05:00
Michael Kirk c0991fce74 enable dark theme for beta 2018-09-12 19:21:14 -05:00
Michael Kirk c384b961da Merge branch 'mkirk/ignore-left-group-messages' into release/2.29.3 2018-09-12 19:19:56 -05:00
Michael Kirk 01627446ab update pods 2018-09-12 19:19:39 -05:00
Michael Kirk b09831d8d0 copy updates 2018-09-12 19:16:14 -05:00
Michael Kirk f1e5b1862f Ignore messages from left groups 2018-09-12 19:16:14 -05:00
Michael Kirk b369ffa88f add type annotations 2018-09-12 19:16:14 -05:00
Michael Kirk 7b7da4bc13 add docs to BlockListCache 2018-09-12 19:16:14 -05:00
Michael Kirk fd492f379a Use BlockListCache where possible 2018-09-12 19:16:14 -05:00
Michael Kirk 2eca462efc can view conversation settings for left group 2018-09-12 19:16:14 -05:00
Michael Kirk 2c49232db0 remove barely used getters
Lock contention on these methods is less important because we're not iterating
over their access, e.g. per tableViewCell
2018-09-12 19:16:14 -05:00
Michael Kirk 448936d156 BlockListCache
block manager synchronizes on self for coherent read/writes to blocking state
across threads, but we want to be able to have performant reads on the main
thread.
2018-09-12 19:16:14 -05:00
Michael Kirk 28d28cf2b6 remove unused code 2018-09-12 19:16:14 -05:00
Michael Kirk b6eb1476cb Leave group when blocking it 2018-09-12 19:16:14 -05:00
Michael Kirk 13cf9eab31 copy fixups 2018-09-12 19:16:14 -05:00
Michael Kirk 8aba5725cf BlockListViewController v. group blocking 2018-09-12 19:16:14 -05:00
Michael Kirk 809b3766c1 Home view cell v. group blocking 2018-09-12 19:16:14 -05:00
Michael Kirk 2c9d905a16 Message processor ignores messages from blocked group 2018-09-12 19:16:14 -05:00
Michael Kirk c6de8c579c WIP: Localizations 2018-09-12 19:16:14 -05:00
Michael Kirk b1da5e93d9 group blocking v. conversation view 2018-09-12 19:16:14 -05:00
Michael Kirk eadb04efcc WIP: ContactViewHelper incorporates group blocking
-[ ] UI
  -[ ] Conversation Settings
    -[x] Show switch for group
    -[ ] localize
    -[ ] migrate existing localizations? (nice to have)
    -[ ] can view conversation settings (but not edit them) in left group
    -[ ] special block copy for groups
    -[ ] special unblock copy for groups
  -[ ] ConversationViewHelper
   -[x] Track blocked groups
   -[ ] HomeView
   -[ ] ConversationView
   -[ ] Any others?
   -[ ] Rename? Extract BlockList cache?
  -[ ] Block List
    -[ ] Group Section
    -[ ] Unblock group
  -[ ] Interstitial interacting with blocked threads (e.g. thread picker)
    -[ ] BlockListUIUtils w/ thread
        -[x] Block
        -[x] Unblock
        -[ ] Replace usages where possible
        -[x] block manager
-[ ] Sync
  -[x] tentative protos
  -[ ] confirm protos w/ team
  -[x] send new protos
-[ ] Message Processing
  -[ ] Drop messages from blocked groups
2018-09-12 19:16:14 -05:00
Michael Kirk b282d51da0 SyncMessages for blocked groups 2018-09-12 19:16:14 -05:00
Michael Kirk 236c17f65e WIP: group blocking
-[ ] UI
  -[ ] Conversation Settings
    -[x] Show switch for group
    -[ ] localize
    -[ ] migrate existing localizations? (nice to have)
    -[ ] can view conversation settings (but not edit them) in left group
    -[ ] special block copy for groups
    -[ ] special unblock copy for groups
  -[ ] Block List
    -[ ] Group Section
    -[ ] Unblock group
  -[ ] Interstitial interacting with blocked threads (e.g. thread picker)
    -[ ] BlockListUIUtils w/ thread
        -[x] Block
        -[x] Unblock
        -[ ] Replace usages where possible
        -[x] block manager
-[ ] Sync
  -[x] tentative protos
  -[ ] confirm protos w/ team
  -[ ] send new protos
-[ ] Message Processing
  -[ ] Drop messages from blocked groups
2018-09-12 19:16:14 -05:00
Michael Kirk bfe1f38c75 update protos for group blocking 2018-09-12 19:16:14 -05:00
Michael Kirk 2c4cd11509 Merge branch 'mkirk/fix-group-avatar-update' into release/2.29.3 2018-09-12 17:22:53 -05:00
Michael Kirk 08c0b248ed fix group avatar updates and quote generation
don't shadow same-named variable
2018-09-12 15:01:57 -05:00
Michael Kirk 99b2564994 "Bump build to 2.29.3.0." 2018-09-09 13:50:39 -05:00
Michael Kirk 17da53257f "Bump build to 2.29.2.4." 2018-09-07 16:37:37 -06:00
Michael Kirk e4d12feeb9 rev gallery db extension since our `isValid` checks have changed 2018-09-07 16:37:00 -06:00
Michael Kirk 5bafc7b6d6 Don't allow enabling dark theme in production yet 2018-09-07 16:36:24 -06:00
Matthew Chen 654c98d805 "Bump build to 2.29.2.3." 2018-09-06 16:10:51 -04:00
Matthew Chen a443a64ff7 Merge branch 'charlesmchen/convoThumbnails3' into release/2.29.2 2018-09-06 16:04:21 -04:00
Matthew Chen 9fefdd2e2c Respond to CR. 2018-09-06 16:04:01 -04:00
Matthew Chen a2fe4dbe39 Refine image validation. 2018-09-06 16:04:01 -04:00
Matthew Chen 34a05cdb85 Refine image validation. 2018-09-06 16:04:01 -04:00
Matthew Chen 5b04a421b0 Merge branch 'charlesmchen/convoThumbnails2' into release/2.29.2 2018-09-06 16:03:48 -04:00
Matthew Chen 1c325cd210 Respond to CR. 2018-09-06 16:03:29 -04:00
Matthew Chen b6649319da Fix build breakage. 2018-09-06 16:03:29 -04:00
Matthew Chen 27fa5dc2ef Make thumbnail logic thread-safe to being called on main thread. 2018-09-06 16:03:29 -04:00
Matthew Chen a04aa259ed Fix bug in sync loading of thumbnails. 2018-09-06 16:03:29 -04:00
Matthew Chen 5bdbf76b08 Cache "is valid image/video" properties. 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 51e8fdcb25 Use small thumbnail when creating quoted reply. 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