Commit Graph

356 Commits

Author SHA1 Message Date
Nora Trapp
4ad7479ff9 Use new accent blue color everywhere except launch screen related views 2020-03-04 10:00:55 -08:00
Matthew Chen
17356e079a Fix dm duration slider interaction. 2020-03-04 12:35:24 -03:00
Matthew Chen
100fcd2572 Merge tag '3.6.1.0' 2020-03-04 10:32:39 -03:00
Matthew Chen
a5d58e5a0e Improve logging around spurious timeouts. 2020-03-03 17:39:53 -03:00
Matthew Chen
08cf2fe8b2 Respond to CR. 2020-03-03 17:32:02 -03:00
Matthew Chen
a24115d391 Resolve groups v2-related TODOs. 2020-03-03 17:11:04 -03:00
Matthew Chen
dc509505f1 Fix 'share my profile' in conversation settings view. 2020-03-03 13:56:21 -03:00
Matthew Chen
5e8b4d2077 Clean up handling of networking errors. 2020-03-03 12:32:50 -03:00
Matthew Chen
f31b29c89d Reconcile message request changes from v3.5 with master. 2020-03-02 15:45:46 -03:00
Matthew Chen
20aeb8df44 Merge remote-tracking branch 'private/release/3.6.0' 2020-03-02 13:39:20 -03:00
Matthew Chen
ec5eb34669 Leverage v2 group model. 2020-02-28 16:26:55 -03:00
Matthew Chen
caa101beab Merge remote-tracking branch 'private/release/3.5.0' into release/3.6.0 2020-02-27 13:52:43 -03:00
Matthew Chen
f2240376c8 Rework groups v2 debug flags. 2020-02-26 23:23:40 -03:00
Matthew Chen
fd4780d82d Add timeouts to v2 group updates; surface network errors to user. 2020-02-26 16:56:37 -03:00
Nora Trapp
a360291deb Always quit the group when blocking a thread. 2020-02-25 12:47:03 -07:00
Matthew Chen
c572db4886 Add TSGroupModelBuilder. 2020-02-24 16:44:48 -03:00
Matthew Chen
17b9420c7f Clean up ahead of PR. 2020-02-21 13:12:40 -03:00
Matthew Chen
7dce8a3d2f Improve support for v2 groups in update group view. 2020-02-21 13:12:40 -03:00
Matthew Chen
e3fd515abe Add local prefix to a few more GroupManager methods. 2020-02-21 12:37:33 -03:00
Matthew Chen
9ce3a42f74 Rename GroupManager methods. 2020-02-21 12:31:45 -03:00
Matthew Chen
dec0176eb3 Overhaul message request view.
* Fix input toolbar visibility after accepting group v2 invite.
2020-02-21 10:55:40 -03:00
Michael Kirk
f198d9037d Merge tag '3.5.0.5' 2020-02-19 19:26:05 -07:00
Nora Trapp
aad98e866e Hide profile share status / button in conversation settings. 2020-02-17 16:11:05 -07:00
Michael Kirk
7eefc55975 disable key conversation settings while pending message request exists 2020-02-15 11:37:24 -07:00
Nora Trapp
e420b2194c If there's a pending message request and we send a message to a thread, share our profile 2020-02-15 11:37:24 -07:00
Matthew Chen
cf7681b346 Fix group v2 update edge cases around missing signatures and group access. 2020-02-13 10:19:11 -03:00
Matthew Chen
174ab60e66 Fix handling of access control in protos; improve debug descriptions; clean up. 2020-02-13 10:15:42 -03:00
Michael Kirk
4f5e52d578 remove conversation search feature flag 2020-02-12 15:19:55 -07:00
Nora Trapp
70d948843f Remote FF for message requests 2020-02-11 18:27:46 -08:00
Matthew Chen
d057936e28 Use TSGroupMemberRole in group membership. 2020-02-11 11:41:32 -03:00
Matthew Chen
a36bdab4c5 Overhaul group model, group membership. 2020-02-11 11:41:31 -03:00
Matthew Chen
c95f230e8d Profiles vs. Groups v2
* Update profile whitelist to reflect v2 group membership.
* Fill in missing profile keys from group change protos.
* Ensure local profile has commitment before doing any v2 group requests.
* Fix "ensure local profile key credential" bug.
* Fix profile key parsing from group v2 member protos.
* Fix edge case around members missing uuids in temporary update group view.
2020-02-06 11:50:15 -03:00
Matthew Chen
647fb3a33f Rework "leave group", consolidate group update logic. Add groups v2 indicator. 2020-02-06 11:11:22 -03:00
Matthew Chen
e4a81a7e25 Respond to CR. 2020-02-06 11:04:32 -03:00
Matthew Chen
fb2d4b1744 Use Groups v2 to coordinate disappearing message state. 2020-02-06 10:50:45 -03:00
Matthew Chen
17f32b1fbe Respond to CR. 2020-02-06 10:26:02 -03:00
Matthew Chen
149ead416c Clean up ahead of PR. 2020-02-06 10:26:02 -03:00
Matthew Chen
64f47e9d7a Sketch out handling of pending members. 2020-02-06 10:26:02 -03:00
Michael Kirk
83d26fe62e revamp group updates - show source, show changes, show icon 2020-01-30 20:10:55 -08:00
Michael Kirk
8a25781400 clarify delegate method 2020-01-30 20:10:55 -08:00
Matthew Chen
e328ccd0ef Apply v2 group changes to group model. 2020-01-27 11:47:44 -03:00
Matthew Chen
91d100c792 Rework group updates; rework "update group" view to use GroupManager.
* Introduce GroupMembership & GroupAccess.
* Pull out GroupsV2Test.
* Fix issues in groups v2 logic.
2020-01-27 11:18:21 -03:00
Michael Kirk
61ec8612ee revamp group updates - show source, show changes, show icon 2020-01-23 11:55:48 -07:00
Michael Kirk
0a2ec74e8d clarify delegate method 2020-01-23 11:55:48 -07:00
Michael Kirk
0dfccd2749 avoid compiler warning, mark protocol conformance 2020-01-17 16:09:33 -07:00
Matthew Chen
1ae6012ecb Create and fetch groups v2; group update roundtrip. 2020-01-17 17:29:00 -03:00
Matthew Chen
976fd5dfb8 Cache user profiles and signal accounts. 2020-01-16 16:52:25 -03:00
Matthew Chen
72f912dce3 Versioned profile changes, etc. 2020-01-08 13:54:54 -03:00
Matthew Chen
29150102cb Revert group and profile changes. 2019-12-11 20:41:54 -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
Michael Kirk
17dd01c266 fix janky animation when table resizes due to pinning to keyboard 2019-12-05 14:05:33 -07:00
Matthew Chen
3d88f68cfb Rework new group new creation & group updates. 2019-12-04 15:40:54 -03:00
Matthew Chen
b38a64cce8 Revert "Revert "Merge branch 'charlesmchen/groupManager2'""
This reverts commit 7530dee591.
2019-11-12 09:02:52 -03:00
Matthew Chen
7530dee591 Revert "Merge branch 'charlesmchen/groupManager2'"
This reverts commit 26fd0d0812, reversing
changes made to c17865b750.
2019-11-11 20:01:45 -03:00
Matthew Chen
5e5aa2368b Apply group manager in tests. 2019-11-11 17:31:21 -03:00
Nora Trapp
9df379ab5c Dismiss -> Cancel 2019-11-08 19:09:54 -08:00
Matthew Chen
f97b33ffaa Add GroupManager. 2019-11-07 15:03:42 -03:00
Michael Kirk
61fb6e575e remove block from overwriting update, undeprecate upsert 2019-11-04 14:06:54 -08:00
Michael Kirk
7faf75c6d7 CR: add debug assert 2019-11-04 14:06:54 -08:00
Michael Kirk
0fca274e62 Sync Groups and Contacts 2019-11-04 14:06:54 -08:00
Nora Trapp
b6a8e5685f Restrict all paths to calling on linked devices. 2019-10-28 14:49:10 -07:00
Nora Trapp
d8aecdb1ed PR Feedback. 2019-10-28 14:44:24 -07:00
Nora Trapp
90139acf67 New member action sheet for groups 2019-10-28 14:44:24 -07:00
Nora Trapp
65d54e7282 UIAlertController -> ActionSheetController 2019-10-28 14:43:59 -07:00
Nora Trapp
c107125dcf Show contact views with a push 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
586d32c0f1 consolidate add-to-contacts into a single cell behind action sheet 2019-10-10 13:20:17 -07:00
Michael Kirk
15c7d3ccc6 update icons for profile/contacts 2019-10-10 13:12:10 -07:00
Nora Trapp
18d345ec06 PR Feedback 2019-10-08 20:10:02 -07:00
Nora Trapp
b552059c2a Present various modals as form sheets. 2019-10-08 20:10:02 -07:00
Nora Trapp
baf8950efb Support all orientations on iPad 2019-10-03 11:55:03 -07:00
Matthew Chen
d8f99ab026 Merge remote-tracking branch 'private/release/2.44.0' 2019-09-27 17:10:34 -03:00
Matthew Chen
20683678b5 Store group avatars as data. 2019-09-27 16:25:53 -03:00
Michael Kirk
95f2d511e1 font updates 2019-09-26 12:20:42 -07:00
Michael Kirk
822d33f1d5 new icons: conversation settings 2019-09-25 14:49:26 -07:00
Michael Kirk
54812451f4 Update and apply palette. Consolidate dupes. 2019-09-24 15:12:51 -07:00
Michael Kirk
f63a64243a convert colors to Swift 2019-09-24 15:12:50 -07:00
Matthew Chen
6a529e792d Rework message configuration. Simplify change detection, ensure continuity for deleted threads. 2019-09-13 20:40:06 -03:00
Matthew Chen
3730b0419b Respond to CR. 2019-09-04 09:49:29 -03:00
Matthew Chen
bcd58bd538 Simplify disappearing messages configuration. 2019-09-04 09:43:59 -03:00
Nora Trapp
129535f2d7 Merge branch 'release/2.42.0' 2019-08-29 15:21:40 -07:00
Nora Trapp
b45516839f Restore old ~profile display 2019-08-29 10:18:12 -07:00
Matthew Chen
a5efaf8d16 Merge remote-tracking branch 'private/release/2.42.0' 2019-08-28 11:33:26 -03:00
Matthew Chen
cd88f4f012 Address sticky keyboards on iOS 12. 2019-08-27 14:50:29 -03:00
Michael Kirk
45c4066a80 Fix deadlock with thread.name
For contact threads, thread.name opened a sneaky transaction, which would
sometimes cause a deadlock.

This commit moves the name method to the contact manager and offers an explicit
transaction flavor. There is still a sneaky transaction flavor used in some
places where it's deemed dangerous to plumb through a transaction without
further scrutiny.
2019-08-23 18:45:23 -06:00
Nora Trapp
64a90575ef Label current group members in the edit group flow 2019-08-22 09:27:36 -07:00
Nora Trapp
07ed67f943 Cleanup some unused classes 2019-08-22 09:27:36 -07:00
Nora Trapp
2d566ae029 Allow adding usernames to existing groups. 2019-08-22 09:27:36 -07:00
Nora Trapp
6759961c33 Fix duplicated thread name 2019-08-21 20:40:21 -07:00
Michael Kirk
dbde7419a2 CR: make cache clearing private 2019-08-21 09:12:33 -06:00
Michael Kirk
822d5f9708 cache conversation color names
Repeatedly fetching threads is a perf hit when rendering interactions.
2019-08-21 09:06:35 -06:00
Matthew Chen
85756b0fe9 Merge remote-tracking branch 'private/release/2.42.0' 2019-08-16 13:21:38 -03:00
Nora Trapp
6da1d9d7e8 Username as a fallback option in display name 2019-08-15 12:37:51 -07:00
Matthew Chen
f5fd583e75 Reduce usage of OWSUserProfile header. 2019-08-15 16:10:14 -03:00
Matthew Chen
d308c566af Address deadlocks in profile manager. 2019-08-15 16:10:14 -03:00
Nora Trapp
875a3adde8 PR Feedback 2019-08-14 21:44:14 -07:00
Nora Trapp
5ce5264d07 Add username creation flow. 2019-08-14 21:44:14 -07:00
Michael Kirk
82c99c4003 CR: rename for clarity 2019-08-12 15:11:40 -06:00
Michael Kirk
f3793f0f2a Consolidate OutgoingMessage preparation 2019-08-12 15:11:40 -06:00
Michael Kirk
4dc75aed3d fix warnings 2019-08-09 09:41:59 -06:00
Michael Kirk
0bd5f7f0ba use modern icon 2019-08-08 14:12:14 -06:00
Michael Kirk
afd9d7781a Camera First flow 2019-08-02 09:26:23 -06:00
Nora Trapp
47ea0b1172 Restore profile options in conversation settings until phone number privacy rolls out 2019-07-31 13:18:06 -07:00
Nora Trapp
96bf655727 Profile name renders at same level as system contact name 2019-07-29 12:50:54 -07:00
Nora Trapp
aedde9fde8 Remove profile banners 2019-07-29 12:40:09 -07:00
Matthew Chen
0ef2c90043 Remove usage of primary storage. 2019-07-29 15:16:51 -03:00
Matthew Chen
23794d7b84 Remove usage of primary storage. 2019-07-29 15:16:51 -03:00
Matthew Chen
43929dde39 Remove usage of primary storage. 2019-07-29 15:16:51 -03:00
Michael Kirk
5c2c48a75c Smooth Media Gallery Animations 2019-07-24 13:25:37 -06:00
Nora Trapp
3d1dd3dfe4 Remove rtlSafeAppend 2019-07-19 12:33:17 -07:00
Nora Trapp
4cd51e5a2c Show that a user is in system contacts in the conversation settings 2019-07-18 12:21:39 -07:00
Nora Trapp
c80b48be89 Use SafariVC for internal links 2019-07-16 15:41:31 -07:00
Matthew Chen
5daa395acd Convert threads to BaseModel. 2019-07-16 13:50:21 -03:00
Nora Trapp
a323ff4ddf No more transitional_phoneNumber 2019-07-11 10:52:13 -07:00
Michael Kirk
9dec973def show uuid in debug builds 2019-07-10 22:53:53 -06:00
Nora Trapp
077febc757 Update some misc stuff to use SignalServiceAddress 2019-07-10 13:31:03 -07:00
Nora Trapp
3c33f276f7 Maintain a SignalServiceAddress cache to allow for isEqual implementation 2019-07-10 13:27:36 -07:00
Nora Trapp
b9bb444276 Add UUID support to groups 2019-07-10 13:27:36 -07:00
Nora Trapp
ae503f6a91 Finish up UUID safety number support 2019-07-10 12:45:30 -07:00
Nora Trapp
c186755c66 Migrate IdentityManager and associated models to support UUIDs 2019-07-08 11:44:40 -07:00
Nora Trapp
324add7897 Allow viewing UUID thread 2019-07-02 18:33:14 -07:00
Nora Trapp
a1f85fca30 Migrate profiles to support UUIDs 2019-07-02 11:19:50 -07:00
Nora Trapp
a332c119d1 PR Feedback 2019-06-27 13:13:52 -07:00
Nora Trapp
7d94af3287 Migrate TSContactThread to support UUIDs 2019-06-27 13:12:52 -07:00
Matthew Chen
a16cd753cb Respond to CR. 2019-06-25 15:57:31 -04:00
Matthew Chen
b86ab9f611 Migrate OWSDisappearingMessagesConfiguration to any. 2019-06-25 15:48:37 -04:00
Nora Trapp
a71b516a98 PR Feedback 2019-06-25 10:31:23 -07:00
Nora Trapp
34e8a7e4a0 PR Feedback 2019-06-25 10:31:23 -07:00
Nora Trapp
92f817d7fd Update callsites to use new contacts manager address interface 2019-06-25 10:30:52 -07:00
Matthew Chen
a7a7499a8e Migrate more key-value stores. 2019-06-19 11:21:12 -04:00
Nora Trapp
ac2abaf705 PR Feedback 2019-06-13 09:40:35 -07:00
Nora Trapp
b0be53cff2 Update group create/edit flow to better indicate you can add a photo 2019-06-05 08:59:22 -07:00
Matthew Chen
9beaa7e19b Migrate all models. 2019-05-31 10:27:20 -04:00
Michael Kirk
691209e25e Decrypt Messages with AnyTransaction
- Migrate protocol stores to KVStores
- Introduce AnyDatabaseQueue
- Move messaging pipeline to AnyTransactions
- Migrate specialized PushDecrypt job to generic JobQueue
2019-05-21 16:20:22 -04:00
Matthew Chen
5925c92339 Add more accessibility identifiers. 2019-05-14 15:04:13 -04:00
Michael Kirk
ecb6c275f8 MessageSender API takes AnyTransaction 2019-05-14 10:44:55 -06:00
Matthew Chen
c229f39012 Add sticker sync messages. 2019-04-22 10:26:09 -04:00
Matthew Chen
5ca2991f0c Sketch out the SDS code generation.
* Copy SDS code generation and utility files from playground.
2019-04-11 09:15:28 -04:00
Michael Kirk
e69494450b put conversation search behind feature flag 2019-04-01 13:56:27 -06:00
Matthew Chen
3ce3f9faaa Add accessibilityIdentifiers to conversation settings view. 2019-03-25 09:31:55 -04:00
Matthew Chen
f073dd9a52 Add accessibilityIdentifiers to conversation settings view. 2019-03-25 09:31:55 -04:00
Michael Kirk
ed6b461662 search icon 2019-03-22 18:18:56 -07:00
Matthew Chen
882dd16d7c Apply presentAlert() throughout codebase. 2019-03-21 10:55:04 -04:00
Michael Kirk
71dd4eb151 in-conversation search
- use MediaTime for computing benchmarks
2019-02-28 16:19:16 -07:00
Michael Kirk
5bd3cec6dc Merge tag '2.36.1.0' 2019-02-26 10:07:54 -07:00
Matthew Chen
72082edad8 Fix a visual bug that would sometimes occur while rendering settings switches. Thanks to Gunnar C. Pope for the bug report. 2019-02-25 15:13:16 -07:00
Michael Kirk
fabd3996c2 pop view if message is deleted
- use global ui database connection
2019-02-21 16:18:14 -07:00
Matthew Chen
afcacbb55c Sketch out the 'onboarding profile' view. 2019-02-18 09:54:27 -05:00