fix: whisper page: pass none null mid

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-23 17:26:36 +08:00
parent 812170ce38
commit dffea51223
2 changed files with 7 additions and 5 deletions

View File

@@ -249,10 +249,12 @@ class _WhisperPageState extends State<WhisperPage> {
sessionList[i].accountInfo.name, sessionList[i].accountInfo.name,
'face': 'face':
sessionList[i].accountInfo.face, sessionList[i].accountInfo.face,
'mid': sessionList[i] if (sessionList[i].accountInfo.mid !=
.accountInfo null)
.mid 'mid': sessionList[i]
.toString(), .accountInfo
.mid
.toString(),
}, },
); );
}, },

View File

@@ -26,7 +26,7 @@ class WhisperDetailController extends GetxController {
talkerId = int.parse(Get.parameters['talkerId']!); talkerId = int.parse(Get.parameters['talkerId']!);
name = Get.parameters['name']!; name = Get.parameters['name']!;
face = Get.parameters['face']!; face = Get.parameters['face']!;
mid = Get.parameters['mid']!; mid = Get.parameters['mid'];
querySessionMsg(); querySessionMsg();
} }