Skip to content

Commit

Permalink
fix: 私信列表渲染异常 issues #295
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhigq committed Mar 15, 2024
1 parent 5e8d9b5 commit 491bc87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/http/msg.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
};
}
Expand Down
3 changes: 2 additions & 1 deletion lib/pages/whisper/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ class _WhisperPageState extends State<WhisperPage> {
sessionList[i]
.lastMsg
.content[
'reply_content'])
'reply_content'] ??
'不支持的消息类型')
: '不支持的消息类型',
maxLines: 1,
overflow: TextOverflow.ellipsis,
Expand Down

0 comments on commit 491bc87

Please sign in to comment.