mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user