diff --git a/lib/util/input_submit_util.dart b/lib/util/input_submit_util.dart index c11267e..84109f0 100644 --- a/lib/util/input_submit_util.dart +++ b/lib/util/input_submit_util.dart @@ -86,7 +86,7 @@ class InputSubmitUtil { model: chatSessionController.currentSession.model, msgType: 1, synced: false, - updated: getCurrentDateTime(), + updated: getCurrentDateTime() + 1, generating: true, ); chatMessageController.addMessage(targetMessage); @@ -105,6 +105,7 @@ class InputSubmitUtil { targetMessage.generating = false; targetMessage.closeStream(); chatMessageController.saveMessage(userMessage); + targetMessage.updated = getCurrentDateTime() + 1; chatMessageController.saveMessage(targetMessage); chatSessionController .updateSessionLastEdit(chatSessionController.currentSession); @@ -229,7 +230,7 @@ class InputSubmitUtil { model: chatSessionController.currentSession.model, msgType: 1, synced: false, - updated: getCurrentDateTime(), + updated: getCurrentDateTime() + 1, generating: true, ); chatMessageController.addMessage(targetMessage); @@ -255,6 +256,7 @@ class InputSubmitUtil { targetMessage.generating = false; targetMessage.closeStream(); chatMessageController.saveMessage(userMessage); + targetMessage.updated = getCurrentDateTime() + 1; chatMessageController.saveMessage(targetMessage); chatSessionController .updateSessionLastEdit(chatSessionController.currentSession); @@ -387,6 +389,7 @@ class InputSubmitUtil { chatSessionController.currentSession.sid, 'assistant', '', false); targetMessage.responseJson = jsonEncode(images.json); targetMessage.status = 1; + targetMessage.updated = getCurrentDateTime() + 1; chatMessageController.addMessage(targetMessage); chatMessageController.update(); chatMessageController.saveMessage(userMessage); @@ -442,7 +445,7 @@ class InputSubmitUtil { msgType: 1, synced: false, generating: false, - updated: getCurrentDateTime() + 1, + updated: getCurrentDateTime() + 5, ); chatMessageController.addMessage(targetMessage); diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index 1ce768f..7799f1d 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -16,7 +16,7 @@ import window_manager func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin")) IsarFlutterLibsPlugin.register(with: registry.registrar(forPlugin: "IsarFlutterLibsPlugin")) - FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin")) + FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) ScreenRetrieverPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverPlugin")) UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) diff --git a/macos/Podfile.lock b/macos/Podfile.lock index 34fd543..446d82d 100644 --- a/macos/Podfile.lock +++ b/macos/Podfile.lock @@ -56,4 +56,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367 -COCOAPODS: 1.14.1 +COCOAPODS: 1.13.0