Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
hrxiang committed Jun 17, 2022
1 parent 27ecdd9 commit 37c312b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OpenIM-SDK/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

implementation 'io.openim:core-sdk:2.0.9.18@aar'
implementation 'io.openim:core-sdk:2.0.9.23@aar'
implementation 'com.google.code.gson:gson:2.9.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,15 @@ public String getAtAllTag() {
return Open_im_sdk.getAtAllTag();
}

/**
* 全局免打扰
*
* @param status 状态 1:屏蔽消息; 2:接收消息但不提示; 0:正常
*/
public void resetConversationGroupAtType(OnBase<String> base, long status) {
Open_im_sdk.setGlobalRecvMessageOpt(BaseImpl.stringBase(base), ParamsUtil.buildOperationID(), status);
}

/**
* 会话排序比较器
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public class UserInfo {
*/
private BlacklistInfo blackInfo;

/**
* 全局免打扰
*/
private int globalRecvMsgOpt;

public String getUserID() {
if (null == userID) {
if ((isFriendship())) {
Expand Down Expand Up @@ -219,4 +224,11 @@ public boolean isFriendship() {
return null != friendInfo;
}

public int getGlobalRecvMsgOpt() {
return globalRecvMsgOpt;
}

public void setGlobalRecvMsgOpt(int globalRecvMsgOpt) {
this.globalRecvMsgOpt = globalRecvMsgOpt;
}
}

0 comments on commit 37c312b

Please sign in to comment.