Skip to content

Commit

Permalink
Merge pull request #2 from jacobcxdev/dev/v1.0.1
Browse files Browse the repository at this point in the history
Fixed crashes on early versions of iOS 13
  • Loading branch information
jacobcxdev authored Jun 10, 2020
2 parents 35da00d + 95ff089 commit 5139508
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Objective-C/Tweak/Tweak.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
- (void)_chatUnreadCountDidChange:(NSNotification *)notification;
- (void)_conversationListDidChange:(NSNotification *)notification;
- (void)_updateConversationListsAndSortIfEnabled;
- (void)_updateFilteredConversationLists;
- (void)_updateNonPlaceholderConverationLists;
- (void)_switchFlag:(IrisConversationFlag)flag tag:(IrisConversationTag *)tag;
- (NSArray *)activeConversations;
- (CKConversationList *)conversationList;
Expand Down
11 changes: 10 additions & 1 deletion Objective-C/Tweak/Tweak.x
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,16 @@ static NSMutableArray *filterConversations(NSArray *conversations, IrisConversat
self.navigationItem.title = tag && tag.name ? tag.name : defaultNavigationBarTitle;

[self.tableView beginUpdates];
[self _updateConversationListsAndSortIfEnabled];
if ([self respondsToSelector:@selector(_updateConversationListsAndSortIfEnabled)]) {
[self _updateConversationListsAndSortIfEnabled];
} else {
if ([self respondsToSelector:@selector(_updateFilteredConversationLists)]) {
[self _updateFilteredConversationLists];
}
if ([self respondsToSelector:@selector(_updateNonPlaceholderConverationLists)]) {
[self _updateNonPlaceholderConverationLists];
}
}
NSIndexSet *indexSet = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, self.tableView.numberOfSections)];
[self.tableView reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];
[self.tableView endUpdates];
Expand Down
2 changes: 1 addition & 1 deletion layout/DEBIAN/control
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Description: Put the sparkle back in 'i'Message!
Maintainer: JacobCXDev <[email protected]>
Author: JacobCXDev <[email protected]>
Section: Tweaks
Version: 1.0.0
Version: 1.0.1
Tag: cydia::commercial, compatible::ios13
Icon: https://chariz.com/cdn/icon/iris/[email protected]
Depiction: https://repo.chariz.com/package/com.jacobcxdev.iris/

0 comments on commit 5139508

Please sign in to comment.