SDKsuni-appEnterprise
Save a local transcript
OpenIM uni-app / uni-app x SDK guide for Save a local transcript.
import { setMessageLocalContent } from '@/uni_modules/unix-openim-sdk'
await setMessageLocalContent({ conversationID, message: updatedMessage })setMessageLocalContent() is Commercial and stores a complete message object in the specified conversation's local database. Merge the transcript into a copy of the original message first; do not overwrite its clientMsgID, routing fields, or unrelated business elems. The change is device-local and must not be treated as a server or multi-device edit. Version structured transcript data and avoid retaining unnecessary sensitive content.
Was this page helpful?