修改卡片消失
This commit is contained in:
parent
85925d3607
commit
5242ef0870
@ -1250,7 +1250,10 @@ class _MessageItem extends StatelessWidget {
|
||||
_isDuplicateCpInviteMessageForConversation(customData)) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
final cpRelationFormedCard = _cpRelationFormedMessageCard();
|
||||
final isCpInviteMessage =
|
||||
customData != null && _isCpInvitePayload(customData);
|
||||
final cpRelationFormedCard =
|
||||
isCpInviteMessage ? null : _cpRelationFormedMessageCard();
|
||||
final cpStatusLineText = _cpStatusLineTextForMessage();
|
||||
return Container(
|
||||
margin: EdgeInsets.symmetric(horizontal: 15.w, vertical: 8.w),
|
||||
@ -1304,8 +1307,12 @@ class _MessageItem extends StatelessWidget {
|
||||
),
|
||||
child: cpRelationFormedCard,
|
||||
)
|
||||
else if (cpStatusLineText == null)
|
||||
Row(
|
||||
else if (cpStatusLineText == null || isCpInviteMessage)
|
||||
Padding(
|
||||
padding: EdgeInsets.only(
|
||||
top: cpStatusLineText == null ? 0 : 10.w,
|
||||
),
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
textDirection:
|
||||
@ -1320,7 +1327,10 @@ class _MessageItem extends StatelessWidget {
|
||||
SCNavigatorUtils.push(
|
||||
context,
|
||||
replace:
|
||||
AccountStorage().getCurrentUser()?.userProfile?.id !=
|
||||
AccountStorage()
|
||||
.getCurrentUser()
|
||||
?.userProfile
|
||||
?.id !=
|
||||
message.sender,
|
||||
"${SCMainRoute.person}?isMe=${AccountStorage().getCurrentUser()?.userProfile?.id == message.sender}&tageId=${message.sender}",
|
||||
);
|
||||
@ -1376,6 +1386,7 @@ class _MessageItem extends StatelessWidget {
|
||||
Spacer(),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user