Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/data/chatwoot_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ class ChatwootRepositoryImpl extends ChatwootRepository {
try {
if (user != null) {
await localStorage.userDao.saveUser(user);

try {
await clientService.updateContact(user.toJson());
} catch (e) {
print('>>>> 更新联系人信息错误:$e');
}
}

//refresh contact
Expand Down
6 changes: 5 additions & 1 deletion lib/data/remote/responses/chatwoot_event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ class ChatwootEventMessageData {
@JsonKey()
final dynamic users;

@JsonKey()
final dynamic attachments;

ChatwootEventMessageData(
{this.id,
this.user,
Expand All @@ -135,7 +138,8 @@ class ChatwootEventMessageData {
this.externalSourceIds,
this.private,
this.senderId,
this.users});
this.users,
this.attachments,});

factory ChatwootEventMessageData.fromJson(Map<String, dynamic> json) =>
_$ChatwootEventMessageDataFromJson(json);
Expand Down
2 changes: 2 additions & 0 deletions lib/data/remote/responses/chatwoot_event.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies:
mime: ^2.0.0
media_kit: ^1.1.11
media_kit_video: ^1.2.5
media_kit_libs_video: ^1.0.5
#media_kit_libs_video: ^1.0.5
easy_image_viewer: ^1.5.1
cached_network_image: ^3.4.0
flutter_markdown: ^0.7.4+2
Expand Down