Commit Graph

3872 Commits

Author SHA1 Message Date
Matthew Chen
644d341a05 Respond to CR. 2020-02-11 11:41:32 -03:00
Matthew Chen
d057936e28 Use TSGroupMemberRole in group membership. 2020-02-11 11:41:32 -03:00
Matthew Chen
2385f3f49a Add groupsV2forceInvites feature flag. 2020-02-11 11:41:32 -03:00
Matthew Chen
ac32da98f2 Fix bug in v2 group updates. 2020-02-11 11:41:32 -03:00
Matthew Chen
5321d90c97 Fix serialization of GroupMembership. 2020-02-11 11:41:31 -03:00
Matthew Chen
a36bdab4c5 Overhaul group model, group membership. 2020-02-11 11:41:31 -03:00
Matthew Chen
403ca5d975 Add feature flag to discard incoming embedded protos. 2020-02-11 11:41:31 -03:00
Matthew Chen
56bdd112a2 Fix double-processing bug in v2 group message processor. 2020-02-11 10:45:52 -03:00
Matthew Chen
db183f40fd Respond to CR. 2020-02-10 14:36:21 -03:00
Matthew Chen
435a93a3e5 Remove server flag for processing incoming v2 group messages. 2020-02-10 14:36:21 -03:00
Matthew Chen
9205ea636e Add server flags for processing incoming v2 group messages. 2020-02-10 14:36:21 -03:00
Matthew Chen
cd2734c56a Add server flags for v2 group creation. 2020-02-10 14:36:21 -03:00
Matthew Chen
adc570f8e7 Respond to CR. 2020-02-10 14:24:09 -03:00
Matthew Chen
4903d313bd Add group v2 capability and improve handling of network errors. 2020-02-10 14:24:09 -03:00
Matthew Chen
051d2f6115 Fix rebase breakage. 2020-02-06 12:30:55 -03:00
Matthew Chen
78a886e180 Respond to CR feedback. 2020-02-06 12:01:14 -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
1ef11672df Respond to CR. 2020-02-06 11:40:53 -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
4a0dfd8920 Respond to CR. 2020-02-06 10:26:02 -03:00
Matthew Chen
17f32b1fbe Respond to CR. 2020-02-06 10:26:02 -03:00
Matthew Chen
880eacb3b5 Clean up ahead of PR. 2020-02-06 10:26:02 -03:00
Matthew Chen
78f11b6025 Clean up ahead of PR. 2020-02-06 10:26:02 -03:00
Matthew Chen
2de281658a Sketch out handling of pending members. 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
Matthew Chen
740f57cad9 Add additional recipients for v2 group updates. 2020-02-06 10:26:02 -03:00
Matthew Chen
5cd0ed12b7 Add additional recipients for v2 group updates. 2020-02-06 10:26:02 -03:00
Matthew Chen
596e78c7c5 Add additional recipients for v2 group updates. 2020-02-06 10:26:02 -03:00
Matthew Chen
06a4cede95 Rework feature flags, profile fetches for groups v2. Sketch out handling of pending members. 2020-02-06 10:26:02 -03:00
Nora Trapp
1cf95c620b Merge branch 'release/3.4.0' 2020-02-05 12:27:48 -08:00
Nora Trapp
9c288b8698 Disable KBS when censorship circumvention is enabled. 2020-02-05 11:38:58 -08:00
Michael Kirk
4c1afa18a6 secondary devices update capabilities w/ devices endpoint 2020-02-05 10:38:43 -07:00
Nora Trapp
53495b1007 Fix a bug when receiving a reaction from a user without a thread. 2020-02-04 17:15:13 -08:00
Nora Trapp
161d4aa87d Merge branch 'release/3.4.0' 2020-02-04 14:51:09 -08:00
Nora Trapp
80f6807471 Feature flags for production 2020-02-04 14:44:02 -08:00
Nora Trapp
80ffc777a2 Reset repetition interval when changing / creating your PIN 2020-02-04 14:39:36 -08:00
Nora Trapp
df4615f9e7 Bump GRDB schema version to reflect FTS changes from 3.2 2020-02-04 12:10:15 -08:00
Nora Trapp
009b6127b9 Add All tab to reaction detail view 2020-02-04 12:05:22 -08:00
Michael Kirk
be958fffea fix crash in schema migration for old users by introducing "data migrations"
which run *after* any migrations which mutate the schema.

If a user hasn't been keeping up to date, it's possible they'll crash when
running several migrations in sequence.

Any migration which leverages SDSModel serialization must occur *after* changes to the
database schema complete.

Otherwise, for example, consider we have these two pending migrations:
 - Migration 1: resaves all instances of Foo (Foo is some SDSModel)
 - Migration 2: adds a column "new_column" to the "model_Foo" table

Migration 1 will fail, because the generated serialization logic for Foo expects
"new_column" to already exist before Migration 2 has even run.

The solution is to always split logic that leverages SDSModel serialization into a
separate migration, and ensure it runs *after* any schema migrations. That is, new schema
migrations must be inserted *before* any of these Data Migrations.
2020-02-03 22:59:30 -07:00
Nora Trapp
c9c73f95bd Message Requests megaphone + splash 2020-02-03 19:10:23 -08:00
Nora Trapp
16f0a35346 Merge branch 'release/3.4.0' 2020-02-03 18:05:20 -08:00
Nora Trapp
6ce2a85c29 Fetch the remote config when the user registers 2020-02-03 09:48:02 -08:00
Nora Trapp
b9519d45e3 Don't show reactions megaphone to new users. 2020-02-03 09:48:02 -08:00
Nora Trapp
cd398621d8 Sticky Remote Config flags 2020-02-03 09:40:59 -08:00
Nora Trapp
1d149c60a7 PR Feedback 2020-02-02 21:23:39 -08:00
Nora Trapp
4d25599af1 Fix experience upgrade table 2020-02-02 21:17:10 -08:00
Nora Trapp
c46dfbb308 Redesigned reaction view 2020-02-02 21:16:08 -08:00
Michael Kirk
aa5043477a fix test compile 2020-01-31 20:33:57 -07:00