Skip to content

Commit

Permalink
- fix: fixed message rendering (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol authored Feb 29, 2024
1 parent 1458032 commit 3c31503
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const getChatConversation = async ({
const isLocal = isLocalMessage(shinkaiMessage, shinkaiIdentity, profile);
const message: ChatConversationMessage = {
hash:
shinkaiMessage?.external_metadata?.node_api_data.node_message_hash ??
shinkaiMessage?.external_metadata?.node_api_data?.node_message_hash ??
'',
inboxId,
content,
Expand All @@ -58,7 +58,7 @@ export const getChatConversation = async ({
},
isLocal,
scheduledTime:
shinkaiMessage.external_metadata?.node_api_data.node_timestamp,
shinkaiMessage.external_metadata?.node_api_data?.node_timestamp,
};
if (filesInbox) {
const fileNames = await getFileNames(
Expand Down

0 comments on commit 3c31503

Please sign in to comment.