File tree 1 file changed +3
-6
lines changed 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -88,15 +88,12 @@ class MessageListView extends ChangeNotifier {
88
88
}
89
89
90
90
_applyChangesToMessage (UpdateMessageEvent event, Message message) {
91
- // In earlier server versions, omitting the userId indicates that this is a
92
- // rendering-only update. That means this change was initiated by the server,
93
- // not the user.
94
- //
95
91
// TODO(server-5): Cut this fallback; rely on renderingOnly from FL 114
96
92
final isRenderingOnly = event.renderingOnly ?? (event.userId == null );
97
93
if (event.editTimestamp != null && ! isRenderingOnly) {
98
- // Only update the timestamp if this was a user-led update,
99
- // not a server-only update
94
+ // A rendering-only update gets omitted from the message edit history,
95
+ // and [Message.lastEditTimestamp] is the last timestamp of that history.
96
+ // So on a rendering-only update, the timestamp doesn't get updated.
100
97
message.lastEditTimestamp = event.editTimestamp;
101
98
}
102
99
You can’t perform that action at this time.
0 commit comments