Releases: leancloud/objc-sdk
Releases · leancloud/objc-sdk
v10.2.0
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
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
Optimization and fixed bugs
- 修复 IM 影音消息获取不到 duration 的 bug
v10.0.1
Updated
- Live Query support Auto Resubscribe
Fixed
- Crash when saving AVObject which associate with AVFile
v10.0.0
Updated
- Merge AVIMConversationDelegate into AVIMClientDelegate
v9.0.2
Fixed
- AVFile not support IM
v9.0.1
Added
- Sending Transient Message with Callback
Fixed
- LiveQuery not reconnect
v9.0.0
Updated
-
AVIMClient 的方法
-[openWithOption:callback:]
的第一个参数类型变更为 NS_ENUM 类型 -
AVIMClientDelegate 协议废弃
-[imClientPaused:error:]
方法,增加-[imClientClosed::error:]
方法 -
重构了 AVFile
Fixed
- 华东节点文件上传 Request 的 Host 设置错误
v8.2.3
Fixed
- Crash by not check weak imClient
v8.2.2
Fixed
- Crash caused by not initialize '_clientId'