File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -292,6 +292,12 @@ const migrations: {| [string]: (GlobalState) => GlobalState |} = {
292
292
} ,
293
293
} ) ,
294
294
295
+ // Make `sender_id` on `Outbox` required.
296
+ '29' : state => ( {
297
+ ...state ,
298
+ outbox : state . outbox . filter ( o => o . sender_id !== undefined ) ,
299
+ } ) ,
300
+
295
301
// TIP: When adding a migration, consider just using `dropCache`.
296
302
} ;
297
303
Original file line number Diff line number Diff line change @@ -34,10 +34,7 @@ export default (
34
34
} ) ;
35
35
}
36
36
37
- // TODO(#3764): Use sender_id, not sender_email. Needs making
38
- // Outbox#sender_id required; which needs a migration to drop Outbox
39
- // values that lack it; which is fine once the release that adds it
40
- // has been out for a few weeks.
37
+ // TODO(#3764): Use sender_id, not sender_email.
41
38
const shouldGroupWithPrev =
42
39
! diffRecipient
43
40
&& ! diffDays
Original file line number Diff line number Diff line change @@ -184,11 +184,7 @@ export type Outbox = $ReadOnly<{|
184
184
185
185
// The remaining fields are modeled on `Message`.
186
186
187
- // TODO(#3764): Make sender_id required. Needs a migration to drop Outbox
188
- // values that lack it; which is fine once the release that adds it has
189
- // been out for a few weeks.
190
- // (Also drop the hack line about it in MessageLike.)
191
- sender_id ?: UserId ,
187
+ sender_id : UserId ,
192
188
193
189
/* eslint-disable flowtype/generic-spacing */
194
190
...SubsetProperties <
@@ -241,7 +237,6 @@ export type MessageLike =
241
237
| $ReadOnly < { |
242
238
// $Shape<T> is unsound, per Flow docs, but $ReadOnly<$Shape<T>> is not
243
239
...$Shape < { | [ $Keys < Message > ] : void | } > ,
244
- sender_id ? : UserId , // TODO: Drop this once required in Outbox.
245
240
...Outbox ,
246
241
| } > ;
247
242
You can’t perform that action at this time.
0 commit comments