Skip to content

Commit 6ec2865

Browse files
committed
messagesReducer: Maintain edit_history on message updates in FL 118+ format
1 parent d762d1a commit 6ec2865

File tree

3 files changed

+384
-12
lines changed

3 files changed

+384
-12
lines changed

src/api/modelTypes.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -760,8 +760,6 @@ type MessageBase = $ReadOnly<{|
760760
*
761761
* Missing/undefined if, at the time we added it to the state, the realm
762762
* didn't allow viewing edit history.
763-
*
764-
* Stale if the message was updated or moved after we added it to the state.
765763
*/
766764
// TODO: Keep reasonably current:
767765
// - Use `null` for the `allow_edit_history`-false case, to distinguish it
@@ -773,7 +771,6 @@ type MessageBase = $ReadOnly<{|
773771
// particular, a restart event where the server version changed, which
774772
// could mean any number of subtle changes in server behavior), and do
775773
// a re-fetch of server data soon after it.
776-
// - Handle update-message events, writing the FL 118+ shape.
777774
//
778775
// TODO(server-5.0): Remove FL <118 condition
779776
//

0 commit comments

Comments
 (0)