From b951f1b2ae24a665e430374cd0d46e9a5161577f Mon Sep 17 00:00:00 2001 From: haoxiuwen Date: Fri, 22 Sep 2023 15:01:47 +0800 Subject: [PATCH] modify --- .../Manage Local Messages/agora_chat_manage_message_rn.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en-US/markdown/agora-chat/Develop/Messages/Manage Local Messages/agora_chat_manage_message_rn.md b/en-US/markdown/agora-chat/Develop/Messages/Manage Local Messages/agora_chat_manage_message_rn.md index 85769616f46..5e7b1d5298c 100644 --- a/en-US/markdown/agora-chat/Develop/Messages/Manage Local Messages/agora_chat_manage_message_rn.md +++ b/en-US/markdown/agora-chat/Develop/Messages/Manage Local Messages/agora_chat_manage_message_rn.md @@ -44,7 +44,7 @@ ChatClient.getInstance() You can retrieve the messages in the specified conversation from the local database by specifying the conversation ID and chat type: ```typescript -// Sepcify the conversation ID. +// Specify the conversation ID. const convId = "convId"; // Whether to create a conversation if the specified one does not exist. If you set it as true, this method always returns a conversation object. const createIfNeed = true; @@ -53,8 +53,8 @@ const convType = ChatConversationType.PeerChat; // Call getConversation to retrieve the specified conversation. ChatClient.getInstance() .chatManager.getConversation(convId, convType, createIfNeed) - .then((message) => { - console.log("Getting conversations succeeds", message); + .then((conversation) => { + console.log("Getting conversations succeeds", conversation); }) .catch((reason) => { console.log("Getting conversations fails.", reason);