Skip to content

Commit

Permalink
update release note
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyrian2012 committed Oct 25, 2022
1 parent ae3eb9c commit d4c6b1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions distribution/src/main/files/release_note.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Release note 0.97:
1. 升级部分依赖库到最新版本
2. 添加名片消息默认推送信息
3. 添加deb和rpm格式软件包
4. 解决linux平台多端的问题

--------------
Release note 0.96:
Expand Down
4 changes: 4 additions & 0 deletions sdk/src/main/java/cn/wildfirechat/sdk/MessageAdmin.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,22 @@ public static IMResult<Void> recallMessage(String operator, long messageUid) thr
return AdminHttpUtils.httpJsonPost(path, messageData, Void.class);
}

//仅专业版支持
public static IMResult<Void> deleteMessage(long messageUid) throws Exception {
String path = APIPath.Msg_Delete;
DeleteMessageData deleteMessageData = new DeleteMessageData();
deleteMessageData.setMessageUid(messageUid);
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();
Expand All @@ -57,6 +60,7 @@ public static IMResult<Void> updateMessageContent(String operator, long messageU
return AdminHttpUtils.httpJsonPost(path, updateMessageContentData, Void.class);
}

//仅专业版支持
public static IMResult<Void> clearConversation(String userId, Conversation conversation) throws Exception {
String path = APIPath.Conversation_Delete;
InputUserConversation input = new InputUserConversation();
Expand Down

0 comments on commit d4c6b1f

Please sign in to comment.