Skip to content

Releases: leancloud/objc-sdk

v10.2.0

24 Apr 08:55
Compare
Choose a tag to compare

New features

  • IM 增加 conversation member info 功能,相关 API 如下。
// AVIMConversation method

- (void)getAllMemberInfoWithCallback:(void (^)(NSArray<AVIMConversationMemberInfo *> * _Nullable memberInfos, NSError * _Nullable error))callback;


- (void)getAllMemberInfoWithIgnoringCache:(BOOL)ignoringCache
                                 callback:(void (^)(NSArray<AVIMConversationMemberInfo *> * _Nullable memberInfos, NSError * _Nullable error))callback;

- (void)getMemberInfoWithMemberId:(NSString *)memberId
                         callback:(void (^)(AVIMConversationMemberInfo * _Nullable memberInfo, NSError * _Nullable error))callback;

- (void)getMemberInfoWithIgnoringCache:(BOOL)ignoringCache
                              memberId:(NSString *)memberId
                              callback:(void (^)(AVIMConversationMemberInfo * _Nullable memberInfo, NSError * _Nullable error))callback;

- (void)updateMemberRoleWithMemberId:(NSString *)memberId
                                role:(AVIMConversationMemberRole)role
                            callback:(void (^)(BOOL succeeded, NSError * _Nullable error))callback;

// AVIMClientDelegate protocol

- (void)conversation:(AVIMConversation *)conversation didMemberInfoUpdateBy:(NSString * _Nullable)byClientId memberId:(NSString * _Nullable)memberId role:(NSString * _Nullable)role;

Optimization and fixed bugs

  • 新增 kLeanCloudRESTAPIResponseError 字段,可以用该字段从 callback 的 error.userInfo 中取出服务端返回的错误信息
  • IM 的获取签名的方法的调用线程由主线程改为内部的并发线程,防止主线程的堵塞
  • IM Client 的局部重构,优化了 device token 的上传和保存。

v10.1.0

04 Apr 06:36
385512d
Compare
Choose a tag to compare

New features

  • IM 增加 conversation 属性变更的通知,并提供对应的委托协议 API
- (void)conversation:(AVIMConversation *)conversation didUpdateAt:(NSDate *)date byClientId:(NSString *)clientId updatedData:(NSDictionary *)data;

Optimization and fixed bugs

  • IM 修复 client 在释放内存后 installation 没有取消观察者的 bug
  • IM 修复 conversation 的 update 接口的回调不在主线程的 bug
  • IM 修复 patch message 可能会被丢弃的 bug
  • IM 修复 conversation 属性更新后,本地数据不支持 subkey 的 bug
  • 存储 优化 对 device token 的检查

v10.0.2

28 Mar 04:19
f0cf48c
Compare
Choose a tag to compare

Optimization and fixed bugs

  • 修复 IM 影音消息获取不到 duration 的 bug

v10.0.1

27 Mar 02:54
6044445
Compare
Choose a tag to compare

Updated

  • Live Query support Auto Resubscribe

Fixed

  • Crash when saving AVObject which associate with AVFile

v10.0.0

20 Mar 05:58
ac9dce6
Compare
Choose a tag to compare

Updated

  • Merge AVIMConversationDelegate into AVIMClientDelegate

v9.0.2

19 Mar 07:36
990f6c4
Compare
Choose a tag to compare

Fixed

  • AVFile not support IM

v9.0.1

07 Mar 10:15
6932a09
Compare
Choose a tag to compare

Added

  • Sending Transient Message with Callback

Fixed

  • LiveQuery not reconnect

v9.0.0

02 Mar 03:41
a03b2bc
Compare
Choose a tag to compare

Updated

  • AVIMClient 的方法 -[openWithOption:callback:] 的第一个参数类型变更为 NS_ENUM 类型

  • AVIMClientDelegate 协议废弃 -[imClientPaused:error:] 方法,增加 -[imClientClosed::error:] 方法

  • 重构了 AVFile

Fixed

  • 华东节点文件上传 Request 的 Host 设置错误

v8.2.3

09 Feb 09:48
c71d859
Compare
Choose a tag to compare

Fixed

  • Crash by not check weak imClient

v8.2.2

25 Jan 02:38
587c183
Compare
Choose a tag to compare

Fixed

  • Crash caused by not initialize '_clientId'