Skip to content

Commit cf4f176

Browse files
committed
添加开关判断
1 parent 6d2603d commit cf4f176

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

DYYY.xm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7783,8 +7783,11 @@ static NSString *const kHideRecentUsersKey = @"DYYYHideSidebarRecentUsers";
77837783

77847784
return shouldShow;
77857785
}
7786-
77877786
- (id)elementContent {
7787+
if (!DYYYGetBool(DYYY_SAVE_COMMENT_AUDIO_KEY)) {
7788+
return %orig;
7789+
}
7790+
77887791
AWECommentLongPressPanelContext *context = [self commentPageContext];
77897792
AWECommentModel *comment = [context selectdComment] ?: [[context params] selectdComment];
77907793

@@ -7796,6 +7799,10 @@ static NSString *const kHideRecentUsersKey = @"DYYYHideSidebarRecentUsers";
77967799
}
77977800

77987801
- (id)elementImage {
7802+
if (!DYYYGetBool(DYYY_SAVE_COMMENT_AUDIO_KEY)) {
7803+
return %orig;
7804+
}
7805+
77997806
AWECommentLongPressPanelContext *context = [self commentPageContext];
78007807
AWECommentModel *comment = [context selectdComment] ?: [[context params] selectdComment];
78017808

0 commit comments

Comments
 (0)