setMessageSentStatus static method
根据 messageId 设置消息的发送状态。用于UI标记消息为正在发送,对方已接收等状态。
Implementation
static Future<void> setMessageSentStatus(int messageId, int sentStatus, Function(int? code)? finished) async {
Map paramMap = {
"messageId": messageId,
"sentStatus": sentStatus,
};
int? result = await _channel.invokeMethod(RCMethodKey.SetMessageSentStatus, paramMap);
if (finished != null) {
finished(result);
}
}