sendTipMessage method
- {required String sessionId,
- required NIMSessionType sessionType,
- MessageAction? action,
- 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);
}