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