Skip to content

Commit 014e6c2

Browse files
committed
fix chat export
1 parent 2fa90b1 commit 014e6c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/utilities/chat_messages.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ class ChatMessage extends ChangeNotifier {
4343
required Stream<String> stream,
4444
required this.parent,
4545
DateTime? createdAt,
46-
DateTime? updatedAt,
4746
}) : id = id ?? ValueKey<String>(math.Random().nextInt(2^62).toString().hash),
48-
_updatedAt = updatedAt ?? DateTime.now(),
47+
_updatedAt = DateTime.now(),
4948
_content = '',
5049
createdAt = createdAt ?? DateTime.now() {
5150
if (parent != null) {
@@ -205,7 +204,7 @@ class ChatMessage extends ChangeNotifier {
205204
final mapList = [{
206205
'id': id.value,
207206
'parent': parent?.id.value,
208-
'children': _children.map((child) => child.id).toList(),
207+
'children': _children.map((child) => child.id.value).toList(),
209208
'current_child': _currentChild?.id.value,
210209
'role': role.name,
211210
'content': content,

0 commit comments

Comments
 (0)