Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2026-01-02 12:05:31 +08:00
parent 80e007bac6
commit 041af37bb0
67 changed files with 775 additions and 838 deletions

View File

@@ -55,8 +55,8 @@ class WhisperLinkSettingController extends GetxController {
Future<void> getIsPinned() async {
final res = await ImGrpc.sessionUpdate(sessionId: sessionId);
if (res.isSuccess) {
isPinned.value = res.data.session.isPinned;
if (res case Success(:final response)) {
isPinned.value = response.session.isPinned;
}
}

View File

@@ -61,11 +61,12 @@ class _WhisperLinkSettingPageState extends State<WhisperLinkSettingPage> {
),
),
Obx(
() => _controller.sessionSs.value.isSuccess
? _buildBlockItem(
_controller.sessionSs.value.data.followStatus == 128,
)
: const SizedBox.shrink(),
() {
if (_controller.sessionSs.value case Success(:final response)) {
return _buildBlockItem(response.followStatus == 128);
}
return const SizedBox.shrink();
},
),
divider2,
ListTile(