sendReadReceiptRequest static method
请求消息阅读回执
message
要求阅读回执的消息
timestamp
该会话已阅读的最后一条消息的发送时间戳
finished
回调结果,code 为 0 代表操作成功,其他值代表失败
此接口只支持群组
Implementation
static Future<void> sendReadReceiptRequest(Message message, Function(int? code)? finished) async {
Map messageMap = MessageFactory.instance!.message2Map(message);
Map map = {"messageMap": messageMap};
Map result = await _channel.invokeMethod(RCMethodKey.SendReadReceiptRequest, map);
int? code = result["code"];
if (finished != null) {
finished(code);
}
}