From bf4e00ea8e7dd52274e971c6b34e0f79992161b9 Mon Sep 17 00:00:00 2001 From: zapcannon87 Date: Mon, 27 Aug 2018 11:43:42 +0800 Subject: [PATCH 1/2] Fix isolationQueue crash --- .../Tool/Service/LCCKUserSystemService.m | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/ChatKit/Class/Tool/Service/LCCKUserSystemService.m b/ChatKit/Class/Tool/Service/LCCKUserSystemService.m index 5dd32bb4..22c9db7e 100644 --- a/ChatKit/Class/Tool/Service/LCCKUserSystemService.m +++ b/ChatKit/Class/Tool/Service/LCCKUserSystemService.m @@ -22,6 +22,17 @@ @interface LCCKUserSystemService () @implementation LCCKUserSystemService @synthesize fetchProfilesBlock = _fetchProfilesBlock; +- (instancetype)init +{ + self = [super init]; + if (self) { + NSString *queueBaseLabel = [NSString stringWithFormat:@"com.ChatKit.%@", NSStringFromClass([self class])]; + const char *queueName = [[NSString stringWithFormat:@"%@.ForIsolation",queueBaseLabel] UTF8String]; + self->_isolationQueue = dispatch_queue_create(queueName, NULL); + } + return self; +} + - (void)setFetchProfilesBlock:(LCCKFetchProfilesBlock)fetchProfilesBlock { _fetchProfilesBlock = fetchProfilesBlock; } @@ -341,16 +352,6 @@ - (NSMutableDictionary *)cachedUsers { return _cachedUsers; } -- (dispatch_queue_t)isolationQueue { - if (_isolationQueue) { - return _isolationQueue; - } - NSString *queueBaseLabel = [NSString stringWithFormat:@"com.ChatKit.%@", NSStringFromClass([self class])]; - const char *queueName = [[NSString stringWithFormat:@"%@.ForIsolation",queueBaseLabel] UTF8String]; - _isolationQueue = dispatch_queue_create(queueName, NULL); - return _isolationQueue; -} - #pragma mark - #pragma mark - set or get cached user Method From d93a353026644ea7711173df750fa332d128e4ce Mon Sep 17 00:00:00 2001 From: zapcannon87 Date: Mon, 27 Aug 2018 11:46:57 +0800 Subject: [PATCH 2/2] Release v2.3.2 --- ChatKit-OC/Podfile.lock | 4 ++-- ChatKit.podspec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChatKit-OC/Podfile.lock b/ChatKit-OC/Podfile.lock index 6485df15..479bf080 100644 --- a/ChatKit-OC/Podfile.lock +++ b/ChatKit-OC/Podfile.lock @@ -9,7 +9,7 @@ PODS: - AVOSCloudIM/_NOARC (= 11.4.0) - AVOSCloudIM/_NOARC (11.4.0): - AVOSCloud (= 11.4.0) - - ChatKit (2.3.1): + - ChatKit (2.3.2): - AVOSCloud (~> 11.4.0) - AVOSCloudIM (~> 11.4.0) - CYLDeallocBlockExecutor (~> 1.1.2) @@ -91,7 +91,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: AVOSCloud: 1968612949f44d5a79c8ccdd550ca2107bbfde02 AVOSCloudIM: f0a771a9438f39edaf6e67bf051194036b5f33ee - ChatKit: 92fa73dc8b9ada69dc48b391b51ddf0b237b9fe0 + ChatKit: cbe8ad4b802b94ff6fbed57d5498fec71606c37b CYLDeallocBlockExecutor: ecf39e45dcead9e120f460df5668b8f5093d178e CYLTabBarController: 8d99fccf22866fe18c978c5ff863dc6051da45ff DACircularProgress: 4dd437c0fc3da5161cb289e07ac449493d41db71 diff --git a/ChatKit.podspec b/ChatKit.podspec index d3d3179e..434f09a8 100644 --- a/ChatKit.podspec +++ b/ChatKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "ChatKit" - s.version = "2.3.1" + s.version = "2.3.2" s.summary = "An IM App Framework, support sending text, pictures, audio, video, location messaging, managing address book, more interesting features." s.homepage = "https://github.com/LeanCloud/ChatKit-OC" s.license = { :type => 'MIT', :file => 'LICENSE' }