fix: get mid

This commit is contained in:
bggRGjQaUbCoE
2024-10-20 11:58:06 +08:00
parent 73076ba13a
commit 9d48072515
6 changed files with 7 additions and 6 deletions

View File

@@ -51,7 +51,8 @@ class ChatItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
bool isOwner = item.senderUid == GStorage.userInfo.get('userInfoCache').mid;
bool isOwner =
item.senderUid == GStorage.userInfo.get('userInfoCache')?.mid;
bool isPic = item.msgType == MsgType.pic.value; // 图片
bool isText = item.msgType == MsgType.text.value; // 文本