添加按照用户会话删除消息接口
This commit is contained in:
@@ -40,6 +40,12 @@ public class MessageAdmin {
|
||||
return AdminHttpUtils.httpJsonPost(path, deleteMessageData, Void.class);
|
||||
}
|
||||
|
||||
public static IMResult<Void> clearUserMessages(String userId, Conversation conversation, long fromTime, long toTime) throws Exception {
|
||||
String path = APIPath.Msg_Clear_By_User;
|
||||
InputClearUserMessages clearUserMessages = new InputClearUserMessages(userId, conversation, fromTime, toTime);
|
||||
return AdminHttpUtils.httpJsonPost(path, clearUserMessages, Void.class);
|
||||
}
|
||||
|
||||
public static IMResult<Void> updateMessageContent(String operator, long messageUid, MessagePayload payload, boolean distribute) throws Exception {
|
||||
String path = APIPath.Msg_Update;
|
||||
UpdateMessageContentData updateMessageContentData = new UpdateMessageContentData();
|
||||
|
||||
Reference in New Issue
Block a user