updateMessage method

Future<bool> updateMessage (EMMessage msg)

更新本地的消息msg

Implementation

Future<bool> updateMessage(EMMessage msg) async {
  Map<String, dynamic> result = await _emConversationChannel.invokeMethod(
      EMSDKMethod.updateConversationMessage,
      {"id": _conversationId, "msg": msg.toDataMap()});
  if (result['success']) {
    return true;
  }
  return false;
}