Skip to content

Commit

Permalink
Fix up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobcxdev committed Feb 6, 2021
1 parent 1d2823b commit 464c33c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Objective-C/Tweak/Tweak.x
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,14 @@
//

#import "Tweak.h"
#import <dlfcn.h>
#import <LocalAuthentication/LocalAuthentication.h>
#import <libJCX/Utilities.h>
#import "../Globals.h"
#import "../View/IrisAvatarCollectionViewCell.h"
#import "../View/IrisRoundedBorderLayer.h"
#import "../Controller/IrisTagListTableViewController.h"

// MobileSubstrate

typedef void (*MSHookMemory_t)(void *, const void *, size_t);
static MSHookMemory_t MSHookMemory;

// Static Variables

static bool shouldOpenWithDefaults = false;
Expand Down Expand Up @@ -1230,7 +1226,6 @@ static NSMutableArray *filterConversations(NSArray *conversations, IrisConversat
if (isQuickSwitchEnabled) {
void *handle = dlopen("/Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate", RTLD_NOW);
if (handle) {
MSHookMemory = (MSHookMemory_t)(dlsym(handle, "MSHookMemory"));
favouritesSectionSym = MSFindSymbol(MSGetImageByName("/System/Library/PrivateFrameworks/ChatKit.framework/ChatKit"), "_CKAppStripFavoritesSection");
recentsSectionSym = MSFindSymbol(MSGetImageByName("/System/Library/PrivateFrameworks/ChatKit.framework/ChatKit"), "_CKAppStripRecentsSection");
const NSInteger favouritesSection = 1;
Expand Down

0 comments on commit 464c33c

Please sign in to comment.