fix: get whisper content

related #170

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-15 09:26:58 +08:00
parent b9d223369a
commit 0f7be5ec30

View File

@@ -176,7 +176,7 @@ class _WhisperPageState extends State<WhisperPage> {
physics: const NeverScrollableScrollPhysics(),
itemBuilder: (context, int i) {
dynamic content =
sessionList[i].lastMsg.content;
sessionList[i]?.lastMsg?.content;
if (content == null || content == "") {
content = '不支持的消息类型';
} else {