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) { } catch (err) {
return { return {
'status': false, 'status': false,
'date': [], 'data': [],
'msg': err.toString(), 'msg': err.toString(),
}; };
} }
} else { } else {
return { return {
'status': false, 'status': false,
'date': [], 'data': [],
'msg': res.data['message'], 'msg': res.data['message'],
}; };
} }

View File

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