resendInRoomMessage method

Future<bool> resendInRoomMessage(
  1. ZegoInRoomMessage message
)

re-send in-room message

Implementation

Future<bool> resendInRoomMessage(ZegoInRoomMessage message) async {
  final resultErrorCode =
      await ZegoUIKitCore.shared.message.resendInRoomMessage(message);

  if (ZegoUIKitErrorCode.success != resultErrorCode) {
    ZegoUIKitCore.shared.error.errorStreamCtrl?.add(
      ZegoUIKitError(
        code: ZegoUIKitErrorCode.messageReSendError,
        message: 'resend in-room message error:$resultErrorCode, '
            'message:$message, '
            '${ZegoUIKitErrorCode.expressErrorCodeDocumentTips}',
        method: 'sendInRoomCommand',
      ),
    );
  }

  return ZegoErrorCode.CommonSuccess == resultErrorCode;
}