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);