disableSendingMessageByAdmin method

Future<TUIActionCallback> disableSendingMessageByAdmin(
  1. String userId,
  2. bool isDisable
)

Implementation

Future<TUIActionCallback> disableSendingMessageByAdmin(
    String userId, bool isDisable) {
  String userData = Tools.generateUserData();
  Completer<TUIActionCallback> completer = Completer();
  _actionCallback2Future(userData, completer);
  _engineSDK.Dart_DisableSendingMessageByAdmin(
      _engineFFIPointer,
      Tools.string2PointerChar(userId),
      isDisable,
      Tools.string2PointerChar(userData));
  return completer.future;
}