Merge branch 'fix-whisperRenderError'

This commit is contained in:
guozhigq
2024-03-16 23:07:01 +08:00
2 changed files with 4 additions and 3 deletions

View File

@ -31,14 +31,14 @@ class MsgHttp {
} catch (err) {
return {
'status': false,
'date': [],
'data': [],
'msg': err.toString(),
};
}
} else {
return {
'status': false,
'date': [],
'data': [],
'msg': res.data['message'],
};
}

View File

@ -180,7 +180,8 @@ class _WhisperPageState extends State<WhisperPage> {
sessionList[i]
.lastMsg
.content[
'reply_content'])
'reply_content'] ??
'不支持的消息类型')
: '不支持的消息类型',
maxLines: 1,
overflow: TextOverflow.ellipsis,