Skip to content

Commit

Permalink
Merge branch 'fix-whisperRenderError'
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhigq committed Mar 16, 2024
2 parents 09eb180 + 491bc87 commit 4865948
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 4865948

Please sign in to comment.