Fix empty list issue after auto auth

#231 #250 #253 etc
This commit is contained in:
Sunnyyoung
2021-05-09 00:27:46 +08:00
parent 551ac02551
commit e963b6a7e7
6 changed files with 102 additions and 56 deletions
@@ -11,6 +11,12 @@
#import <objc/runtime.h>
#import <objc/message.h>
typedef NS_ENUM(NSUInteger, RevokeNotificationType) {
RevokeNotificationTypeFollow = 0,
RevokeNotificationTypeReceiveAll,
RevokeNotificationTypeDisable,
};
typedef NS_ENUM(unsigned int, MessageDataType) {
MessageDataTypeText = 1,
MessageDataTypeImage = 3,
@@ -21,6 +27,9 @@ typedef NS_ENUM(unsigned int, MessageDataType) {
MessageDataTypePrompt = 10000
};
static NSString * const WeChatTweakPreferenceAutoAuthKey = @"WeChatTweakPreferenceAutoAuthKey";
static NSString * const WeChatTweakPreferenceRevokeNotificationTypeKey = @"WeChatTweakPreferenceRevokeNotificationTypeKey";
@interface NSString (MD5)
- (NSString *)md5String;
@@ -29,8 +38,6 @@ typedef NS_ENUM(unsigned int, MessageDataType) {
@interface WeChat : NSObject
@property(nonatomic) BOOL isAppTerminating;
+ (instancetype)sharedInstance;
- (void)lock:(id)block;
- (void)showMainWindow;
@@ -112,13 +119,6 @@ typedef NS_ENUM(unsigned int, MessageDataType) {
- (BOOL)canAutoAuth;
- (void)AutoAuth;
- (void)onAuthOKOfUser:(id)arg1 withSessionKey:(id)arg2 withServerId:(id)arg3 autoAuthKey:(id)arg4 isAutoAuth:(BOOL)arg5;
@end
@interface LogoutCGI: NSObject
- (void)sendLogoutCGIWithCompletion:(id)arg1;
@end
@@ -128,6 +128,13 @@ typedef NS_ENUM(unsigned int, MessageDataType) {
@end
@interface MMSessionMgr: NSObject
- (void)loadSessionData;
- (void)loadBrandSessionData;
@end
@protocol MASPreferencesViewController <NSObject>
@property(readonly, nonatomic) NSString *toolbarItemLabel;