File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,8 @@ class ChatMessage extends ChangeNotifier {
43
43
required Stream <String > stream,
44
44
required this .parent,
45
45
DateTime ? createdAt,
46
- DateTime ? updatedAt,
47
46
}) : id = id ?? ValueKey <String >(math.Random ().nextInt (2 ^ 62 ).toString ().hash),
48
- _updatedAt = updatedAt ?? DateTime .now (),
47
+ _updatedAt = DateTime .now (),
49
48
_content = '' ,
50
49
createdAt = createdAt ?? DateTime .now () {
51
50
if (parent != null ) {
@@ -205,7 +204,7 @@ class ChatMessage extends ChangeNotifier {
205
204
final mapList = [{
206
205
'id' : id.value,
207
206
'parent' : parent? .id.value,
208
- 'children' : _children.map ((child) => child.id).toList (),
207
+ 'children' : _children.map ((child) => child.id.value ).toList (),
209
208
'current_child' : _currentChild? .id.value,
210
209
'role' : role.name,
211
210
'content' : content,
You can’t perform that action at this time.
0 commit comments