modifyMessage method

  1. @override
Future<V2TimValueCallback<V2TimMessageChangeInfo>> modifyMessage({
  1. required V2TimMessage message,
})
override

Implementation

@override
Future<V2TimValueCallback<V2TimMessageChangeInfo>> modifyMessage(
    {required V2TimMessage message}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .getMessageManager()
      .modifyMessage(message: message);
  if (result.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code));
  }
  return result;
}