beginModifyMessage method

Future<bool> beginModifyMessage(
  1. RCIMIWMessage original,
  2. String content, {
  3. List<String>? mentionUserIds,
  4. bool canStart()?,
})

创建修改消息并进入更新中状态,成功返回时表示请求已建立。

Implementation

Future<bool> beginModifyMessage(
  RCIMIWMessage original,
  String content, {
  List<String>? mentionUserIds,
  bool Function()? canStart,
}) async {
  final operation = await _startModifyMessage(
    original,
    content,
    mentionUserIds: mentionUserIds,
    canStart: canStart,
  );
  if (operation == null) return false;
  unawaited(operation.completion);
  return true;
}