sendTipMessage method

Future<NIMResult<NIMMessage>> sendTipMessage(
  1. {required String sessionId,
  2. required NIMSessionType sessionType,
  3. MessageAction? action,
  4. String? content}
)

发送Tip消息 content web端tip内容传这个字段

Implementation

Future<NIMResult<NIMMessage>> sendTipMessage(
    {required String sessionId,
    required NIMSessionType sessionType,
    MessageAction? action,
    String? content}) async {
  var message = NIMMessage.tipEmptyMessage(
      sessionId: sessionId, sessionType: sessionType);
  message.content = content;
  return _createMessageAndSend(message, action);
}