mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: msg secondary type
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user