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,
'face':
sessionList[i].accountInfo.face,
'mid': sessionList[i]
.accountInfo
.mid
.toString(),
if (sessionList[i].accountInfo.mid !=
null)
'mid': sessionList[i]
.accountInfo
.mid
.toString(),
},
);
},

View File

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