TIMSetMsgUpdateCallback

Introduction

Set message updated on the cloud callback

After you modify a message, ImSDK informs you by this callback

You can intercept messages on your own server Callback Before Sending a One-to-One Message

If you intercept messages, the IM server will transmit all the message to your server

Your server may modify the message (eg. content moderation), if your server modifies the message, ImSDK will notify you via this callback

Parameter details

Parameter name Parameter type Required Description
params TIMMsgUpdateCallbackParams yes Param of setting message updated on the cloud callback

Returned template

void

Return value details

This function has no return value

Code example

import TimRender from "im_electron_sdk/dist/renderer";
const timRenderInstance = new TimRender();
import { TIMMsgUpdateCallbackParams } from "im_electron_sdk/dist/interfaces";

let param:TIMMsgUpdateCallbackParams = {
    callback :(data)=>{},
    user_data: ""
}
timRenderInstance.TIMSetMsgUpdateCallback(param);

results matching ""

    No results matching ""