|
|
@ -81,9 +81,10 @@ class Message extends StatelessWidget {
|
|
|
|
EventTypes.Message,
|
|
|
|
EventTypes.Message,
|
|
|
|
EventTypes.Sticker,
|
|
|
|
EventTypes.Sticker,
|
|
|
|
EventTypes.Encrypted,
|
|
|
|
EventTypes.Encrypted,
|
|
|
|
].contains(nextEvent!.type)
|
|
|
|
].contains(nextEvent!.type) &&
|
|
|
|
? nextEvent!.senderId == event.senderId && !displayTime
|
|
|
|
nextEvent?.relationshipType == null &&
|
|
|
|
: false;
|
|
|
|
nextEvent!.senderId == event.senderId &&
|
|
|
|
|
|
|
|
!displayTime;
|
|
|
|
final textColor = ownMessage
|
|
|
|
final textColor = ownMessage
|
|
|
|
? Theme.of(context).colorScheme.onPrimary
|
|
|
|
? Theme.of(context).colorScheme.onPrimary
|
|
|
|
: Theme.of(context).colorScheme.onBackground;
|
|
|
|
: Theme.of(context).colorScheme.onBackground;
|
|
|
|