Skip to content

Commit 8003146

Browse files
committed
update jmessage to 3.4.1
1 parent 37f9902 commit 8003146

File tree

8 files changed

+53
-12
lines changed

8 files changed

+53
-12
lines changed

ios/RCTJMessageModule/JMessage.framework/Headers/JMSGConstants.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,15 @@ typedef NS_ENUM(NSInteger, JMSGContentType) {
143143
kJMSGContentTypePrompt = 8,
144144
};
145145

146-
146+
/*!
147+
* 提示性消息的类型 - 消息撤回提示、后台自定义消息提示等
148+
*/
149+
typedef NS_ENUM(NSInteger, JMSGPromptContentType) {
150+
/// 消息撤回提示
151+
kJMSGPromptContentTypeRetractMessage = 0,
152+
/// 自定义提示
153+
kJMSGPromptContentTypeAPPRbag = 1 << 0,
154+
};
147155

148156
/*!
149157
* 消息状态

ios/RCTJMessageModule/JMessage.framework/Headers/JMSGEventDelegate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
*
7474
* @param event 申请入群事件
7575
*
76-
* @discussion 申请入群事件相关参数请查看 JMSGApplyJoinGroupEvent 类,在群主审批此事件时需要传递事件的相关参数
76+
* @discussion 只有群主和管理员能收到此事件;申请入群事件相关参数请查看 JMSGApplyJoinGroupEvent 类,在群主审批此事件时需要传递事件的相关参数
7777
*
7878
* @since 3.4.0
7979
*/
@@ -85,7 +85,7 @@
8585
*
8686
* @param event 拒绝入群申请事件
8787
*
88-
* @discussion 拒绝的相关描述和原因请查看 JMSGGroupAdminRejectApplicationEvent 类
88+
* @discussion 只有申请方和被申请方会收到此事件;拒绝的相关描述和原因请查看 JMSGGroupAdminRejectApplicationEvent 类
8989
*
9090
* @since 3.4.0
9191
*/

ios/RCTJMessageModule/JMessage.framework/Headers/JMSGGroup.h

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,33 @@
1515
@class JMSGUser,JMSGApplyJoinGroupEvent;
1616

1717
/*!
18-
* 群信息类(用于修改群信息、创建群)
18+
* @abstract 群信息类(此类仅用于修改群信息、创建群、群信息展示)
19+
*
20+
* #### 注意:
21+
*
22+
* 如果想要获取群的相关属性值、调用相关接口,需要通过 gid 获取到 JMSGGroup 对象再使用;
23+
*
24+
* 本类中可读可写属性表示可以用于群信息修改、创建群传值,只读属性说明是不允许客户端修改的,只做展示;
1925
*/
2026
@interface JMSGGroupInfo : NSObject
2127

28+
/** 群 id */
29+
@property(nonatomic, strong, readonly) NSString *JMSG_NONNULL gid;
2230
/** 群名称 */
23-
@property(nonatomic, strong) NSString *JMSG_NONNULL name;
31+
@property(nonatomic, strong, readwrite) NSString *JMSG_NONNULL name;
2432
/** 群描述 */
25-
@property(nonatomic, strong) NSString *JMSG_NONNULL desc;
26-
/** 群头像数据 */
27-
@property(nonatomic, strong) NSData *JMSG_NONNULL avatarData;
33+
@property(nonatomic, strong, readwrite) NSString *JMSG_NONNULL desc;
34+
/** 群头像数据,此属性只用户修改群信息,切勿从此类拿来此属性来展示 */
35+
@property(nonatomic, strong, readwrite) NSData *JMSG_NONNULL avatarData;
36+
/** 群头像的媒体文件ID */
37+
@property(nonatomic, strong, readonly) NSString *JMSG_NONNULL avatar;
2838
/** 群组类型,私有、公开,注意:仅限于创建群组时设置,创建成功之后不允许修改群类型*/
29-
@property(nonatomic, assign) JMSGGroupType groupType;
39+
@property(nonatomic, assign, readwrite) JMSGGroupType groupType;
40+
/** 群组人数上限*/
41+
@property(nonatomic, strong, readonly) NSString *JMSG_NONNULL maxMemberCount;
3042

3143
@end
3244

33-
3445
/*!
3546
* 群组
3647
*
@@ -155,6 +166,21 @@ JMSG_ASSUME_NONNULL_BEGIN
155166
*/
156167
+ (void)shieldList:(JMSGCompletionHandler)handler;
157168

169+
/*!
170+
* @abstract 分页获取 appkey 下所有公开群信息
171+
*
172+
* @param appkey 群组所在的 AppKey,不填则默认为当前应用 AppKey
173+
* @param start 分页获取的下标,第一页从 index = 0 开始
174+
* @param count 每一页的数量,最大值为500
175+
* @param handler 结果回调,NSArray<JMSGGroupInfo>
176+
*
177+
* #### 注意:返回数据中不是 JMSGGroup 类型,而是 JMSGGroupInfo 类型,只能用于展示信息,如果想要调用相关群组 API 接口则需要通过 gid 获取到 JMSGGroup 对象才可以调用
178+
*/
179+
+ (void)getPublicGroupInfoWithAppKey:(NSString *JMSG_NULLABLE)appkey
180+
start:(NSInteger)start
181+
count:(NSInteger)count
182+
completionHandler:(JMSGCompletionHandler)handler;
183+
158184
/*!
159185
* @abstract 申请加入群组
160186
*

ios/RCTJMessageModule/JMessage.framework/Headers/JMSGMessage.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ JMSG_ASSUME_NONNULL_BEGIN
622622
* @param value 待更新的value,不能为null,类型只能为 NSNumber 和 NSString
623623
* @param key 待更新value对应的key,不能为null
624624
*
625+
* @discussion 如果 message 中没有该 key 对应的 extra 值,则会插入该新值
625626
*/
626627
- (BOOL)updateMessageExtraValue:(id)value forKey:(NSString *)key;
627628

ios/RCTJMessageModule/JMessage.framework/Headers/JMSGPromptContent.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ JMSG_ASSUME_NONNULL_BEGIN
2727
*/
2828
@property(nonatomic,strong, readonly) NSString *promptText;
2929

30+
/*!
31+
* @abstract 提示性消息的类型
32+
*
33+
* @discussion 比如:消息撤回提示、后台自定义消息提示等
34+
*/
35+
@property(nonatomic,assign, readonly) JMSGPromptContentType promptType;
3036

3137
// 不支持使用的初始化方法
3238
- (instancetype)init NS_UNAVAILABLE;

ios/RCTJMessageModule/JMessage.framework/Headers/JMessage.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ extern NSString *const kJMSGServiceErrorNotification; // 错误
5454
@interface JMessage : NSObject
5555

5656
/*! JMessage SDK 版本号。用于展示 SDK 的版本信息 */
57-
#define JMESSAGE_VERSION @"3.4.0"
57+
#define JMESSAGE_VERSION @"3.4.1"
5858

5959
/*! JMessage SDK 构建ID. 每次构建都会增加 */
60-
#define JMESSAGE_BUILD 199
60+
#define JMESSAGE_BUILD 205
6161

6262
/*! API Version - int for program logic. SDK API 有变更时会增加 */
6363
extern NSInteger const JMESSAGE_API_VERSION;
0 Bytes
Binary file not shown.
295 KB
Binary file not shown.

0 commit comments

Comments
 (0)