Skip to content
This repository was archived by the owner on Jul 2, 2019. It is now read-only.

Commit cc714e9

Browse files
authored
Merge pull request #416 from zapcannon87/master
Release v2.3.10
2 parents ac2f3a4 + 1ff5d5d commit cc714e9

File tree

3 files changed

+27
-23
lines changed

3 files changed

+27
-23
lines changed

ChatKit-OC/Podfile.lock

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
PODS:
2-
- AVOSCloud (11.4.8)
3-
- AVOSCloudIM (11.4.8):
4-
- AVOSCloud (= 11.4.8)
5-
- AVOSCloudIM/_ARC (= 11.4.8)
6-
- AVOSCloudIM/_NOARC (= 11.4.8)
7-
- AVOSCloudIM/_ARC (11.4.8):
8-
- AVOSCloud (= 11.4.8)
9-
- AVOSCloudIM/_NOARC (= 11.4.8)
10-
- AVOSCloudIM/_NOARC (11.4.8):
11-
- AVOSCloud (= 11.4.8)
12-
- ChatKit (2.3.9):
13-
- AVOSCloud (~> 11.4.8)
14-
- AVOSCloudIM (~> 11.4.8)
2+
- AVOSCloud (11.4.9)
3+
- AVOSCloudIM (11.4.9):
4+
- AVOSCloud (= 11.4.9)
5+
- AVOSCloudIM/_ARC (= 11.4.9)
6+
- AVOSCloudIM/_NOARC (= 11.4.9)
7+
- AVOSCloudIM/_ARC (11.4.9):
8+
- AVOSCloud (= 11.4.9)
9+
- AVOSCloudIM/_NOARC (= 11.4.9)
10+
- AVOSCloudIM/_NOARC (11.4.9):
11+
- AVOSCloud (= 11.4.9)
12+
- ChatKit (2.3.10):
13+
- AVOSCloud (~> 11.4.9)
14+
- AVOSCloudIM (~> 11.4.9)
1515
- CYLDeallocBlockExecutor (~> 1.1.2)
1616
- DACircularProgress (~> 2.3.1)
1717
- FDStackView (~> 1.0)
@@ -89,9 +89,9 @@ EXTERNAL SOURCES:
8989
:path: "../"
9090

9191
SPEC CHECKSUMS:
92-
AVOSCloud: 65216b8622f1ed0e744c0fc29d97662bffcbc02f
93-
AVOSCloudIM: 2bd392617d659ce6ba7fa57cfc16dcbe3d529f14
94-
ChatKit: c24149911d7487295e11eb7ebd3f470f5b0755e9
92+
AVOSCloud: 1ad969db6e24c41ae1788d68698255d853883069
93+
AVOSCloudIM: 712144be9ee5428c0bf895cf65954a0791b8364b
94+
ChatKit: 408a313d5866cc5c69e059b1539cdaa0eccaa5f7
9595
CYLDeallocBlockExecutor: ecf39e45dcead9e120f460df5668b8f5093d178e
9696
CYLTabBarController: 8d99fccf22866fe18c978c5ff863dc6051da45ff
9797
DACircularProgress: 4dd437c0fc3da5161cb289e07ac449493d41db71

ChatKit.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "ChatKit"
3-
s.version = "2.3.9"
3+
s.version = "2.3.10"
44
s.summary = "An IM App Framework, support sending text, pictures, audio, video, location messaging, managing address book, more interesting features."
55
s.homepage = "https://github.com/LeanCloud/ChatKit-OC"
66
s.license = { :type => 'MIT', :file => 'LICENSE' }
@@ -13,8 +13,8 @@ Pod::Spec.new do |s|
1313
s.resources = 'ChatKit/Class/Resources/*', 'ChatKit/**/*.xib'
1414

1515
s.requires_arc = true
16-
s.dependency "AVOSCloud" , "~> 11.4.8"
17-
s.dependency "AVOSCloudIM", "~> 11.4.8"
16+
s.dependency "AVOSCloud" , "~> 11.4.9"
17+
s.dependency "AVOSCloudIM", "~> 11.4.9"
1818
s.dependency "MJRefresh" , "~> 3.1.9"
1919
s.dependency "Masonry" , "~> 1.0.1"
2020
s.dependency "SDWebImage" , "~> 3.8.0"

ChatKit/Class/Module/Conversation/Model/LCCKConversationViewModel.m

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,6 @@ - (void)preloadMessageToTableView:(id)aMessage callback:(LCCKVoidBlock)callback
712712
NSUInteger newLastMessageCout = self.dataArray.count;
713713
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:self.dataArray.count - 1 inSection:0];
714714
[self.delegate messageSendStateChanged:LCCKMessageSendStateSending withProgress:0.0f forIndex:indexPath.row];
715-
LCCKLock();
716715
NSMutableArray *indexPaths = [NSMutableArray arrayWithObject:indexPath];
717716
NSUInteger additionItemsCount = newLastMessageCout - oldLastMessageCount;
718717
if (additionItemsCount > 1) {
@@ -721,12 +720,17 @@ - (void)preloadMessageToTableView:(id)aMessage callback:(LCCKVoidBlock)callback
721720
[indexPaths addObject:indexPath];
722721
}
723722
}
724-
dispatch_async(dispatch_get_main_queue(),^{
723+
if (NSThread.isMainThread) {
725724
[self.parentConversationViewController.tableView insertRowsAtIndexPaths:[indexPaths copy] withRowAnimation:UITableViewRowAnimationNone];
726-
LCCKUnlock();
727725
[self.parentConversationViewController scrollToBottomAnimated:YES];
728726
!callback ?: callback();
729-
});
727+
} else {
728+
dispatch_async(dispatch_get_main_queue(), ^{
729+
[self.parentConversationViewController.tableView insertRowsAtIndexPaths:[indexPaths copy] withRowAnimation:UITableViewRowAnimationNone];
730+
[self.parentConversationViewController scrollToBottomAnimated:YES];
731+
!callback ?: callback();
732+
});
733+
}
730734
}
731735

732736
#pragma mark - Getters

0 commit comments

Comments
 (0)