fix: msg secondary type

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-09 22:21:03 +08:00
parent 0f41d5b2f8
commit 9e4bc24365
2 changed files with 3 additions and 5 deletions

View File

@@ -1149,7 +1149,7 @@ class VideoDetailController extends GetxController
_querySponsorBlock();
}
if (data.acceptDesc!.isNotEmpty && data.acceptDesc!.contains('试看')) {
if (data.acceptDesc?.contains('试看') == true) {
SmartDialog.showToast(
'该视频为专属视频,仅提供试看',
displayTime: const Duration(seconds: 3),

View File

@@ -82,8 +82,7 @@ class WhisperSecController
}
Future<void> onClearUnread() async {
final res = await ImGrpc.clearUnread(
pageType: SessionPageType.SESSION_PAGE_TYPE_UNFOLLOWED);
final res = await ImGrpc.clearUnread(pageType: sessionPageType);
if (res['status']) {
if (loadingState.value is Success) {
List<Session>? list = loadingState.value.data;
@@ -103,8 +102,7 @@ class WhisperSecController
}
Future<void> onDeleteList() async {
var res = await ImGrpc.deleteSessionList(
pageType: SessionPageType.SESSION_PAGE_TYPE_UNFOLLOWED);
var res = await ImGrpc.deleteSessionList(pageType: sessionPageType);
if (res['status']) {
loadingState.value = LoadingState.success(null);
} else {