mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-08-04 14:57:27 +00:00
fix: local and remote returning different data (#7843)
This commit is contained in:
parent
66fac524c1
commit
2b03c34df1
@ -72,6 +72,7 @@ class ChatBloc extends Bloc<ChatEvent, ChatState> {
|
||||
final request = ViewIdPB(value: chatId);
|
||||
unawaited(FolderEventCloseView(request).send());
|
||||
selectedSourcesNotifier.dispose();
|
||||
chatController.dispose();
|
||||
return super.close();
|
||||
}
|
||||
|
||||
@ -576,6 +577,7 @@ class ChatBloc extends Bloc<ChatEvent, ChatState> {
|
||||
if (temporaryMessageIDMap.containsKey(messageId)) {
|
||||
messageId = temporaryMessageIDMap[messageId]!;
|
||||
}
|
||||
final metadata = message.metadata == 'null' ? '[]' : message.metadata;
|
||||
|
||||
return TextMessage(
|
||||
author: User(id: message.authorId),
|
||||
@ -583,7 +585,7 @@ class ChatBloc extends Bloc<ChatEvent, ChatState> {
|
||||
text: message.content,
|
||||
createdAt: message.createdAt.toDateTime(),
|
||||
metadata: {
|
||||
messageRefSourceJsonStringKey: message.metadata,
|
||||
messageRefSourceJsonStringKey: metadata,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user