diff --git a/lib/ui/community/community_views/widgets/chat_card.dart b/lib/ui/community/community_views/widgets/chat_card.dart index ad7dd5ba..1a8c6baa 100644 --- a/lib/ui/community/community_views/widgets/chat_card.dart +++ b/lib/ui/community/community_views/widgets/chat_card.dart @@ -43,7 +43,7 @@ class ChatCard extends StatefulWidget { class _ChatCardState extends State { bool get _isMyself { final userProvider = Provider.of(context, listen: false); - return (userProvider?.userInfoModel?.id ?? -1) == widget.model.id; + return (userProvider?.userInfoModel?.id ?? -1) == widget.model.createId; } String get firstHead { @@ -149,10 +149,13 @@ class _ChatCardState extends State { materialTapTargetSize: MaterialTapTargetSize.shrinkWrap, onPressed: () { - SendAChat.send( - parentId: 0, - themeId: widget.model.id, - ); + if (widget.model.isComment == 1) + SendAChat.send( + parentId: 0, + themeId: widget.model.id, + ); + else + BotToast.showText(text: '不可评论'); }, child: [ Icon(CupertinoIcons.bubble_right, size: 30.w),