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();
|
_querySponsorBlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.acceptDesc!.isNotEmpty && data.acceptDesc!.contains('试看')) {
|
if (data.acceptDesc?.contains('试看') == true) {
|
||||||
SmartDialog.showToast(
|
SmartDialog.showToast(
|
||||||
'该视频为专属视频,仅提供试看',
|
'该视频为专属视频,仅提供试看',
|
||||||
displayTime: const Duration(seconds: 3),
|
displayTime: const Duration(seconds: 3),
|
||||||
|
|||||||
@@ -82,8 +82,7 @@ class WhisperSecController
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> onClearUnread() async {
|
Future<void> onClearUnread() async {
|
||||||
final res = await ImGrpc.clearUnread(
|
final res = await ImGrpc.clearUnread(pageType: sessionPageType);
|
||||||
pageType: SessionPageType.SESSION_PAGE_TYPE_UNFOLLOWED);
|
|
||||||
if (res['status']) {
|
if (res['status']) {
|
||||||
if (loadingState.value is Success) {
|
if (loadingState.value is Success) {
|
||||||
List<Session>? list = loadingState.value.data;
|
List<Session>? list = loadingState.value.data;
|
||||||
@@ -103,8 +102,7 @@ class WhisperSecController
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> onDeleteList() async {
|
Future<void> onDeleteList() async {
|
||||||
var res = await ImGrpc.deleteSessionList(
|
var res = await ImGrpc.deleteSessionList(pageType: sessionPageType);
|
||||||
pageType: SessionPageType.SESSION_PAGE_TYPE_UNFOLLOWED);
|
|
||||||
if (res['status']) {
|
if (res['status']) {
|
||||||
loadingState.value = LoadingState.success(null);
|
loadingState.value = LoadingState.success(null);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user