From c992286af55aac3bdf84dc304e837e237fbc9a49 Mon Sep 17 00:00:00 2001 From: heavyrain2012 Date: Sun, 5 Dec 2021 11:04:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=A2=91=E9=81=93=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E9=A2=91=E9=81=93?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/src/main/java/cn/wildfirechat/sdk/Main.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/src/main/java/cn/wildfirechat/sdk/Main.java b/sdk/src/main/java/cn/wildfirechat/sdk/Main.java index 7fda6423..3b3bb495 100644 --- a/sdk/src/main/java/cn/wildfirechat/sdk/Main.java +++ b/sdk/src/main/java/cn/wildfirechat/sdk/Main.java @@ -15,6 +15,7 @@ import java.util.Date; import java.util.List; import static cn.wildfirechat.pojos.MyInfoType.Modify_DisplayName; +import static cn.wildfirechat.proto.ProtoConstants.ChannelState.*; import static cn.wildfirechat.proto.ProtoConstants.SystemSettingType.Group_Max_Member_Count; public class Main { @@ -1266,7 +1267,7 @@ public class Main { inputCreateChannel.setOwner("userId1"); String secret = "channelsecret"; inputCreateChannel.setSecret(secret); - inputCreateChannel.setState(0xff); + inputCreateChannel.setState(Channel_State_Mask_FullInfo | Channel_State_Mask_Unsubscribed_User_Access | Channel_State_Mask_Active_Subscribe | Channel_State_Mask_Message_Unsubscribed); IMResult resultCreateChannel = GeneralAdmin.createChannel(inputCreateChannel); if (resultCreateChannel != null && resultCreateChannel.getErrorCode() == ErrorCode.ERROR_CODE_SUCCESS) { System.out.println("create channel success");