mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 10:25:11 +00:00
fix: Username not visible after edit events
This commit is contained in:
parent
82f4c326b4
commit
a06b3e6a9e
1 changed files with 8 additions and 7 deletions
|
@ -77,13 +77,14 @@ class Message extends StatelessWidget {
|
|||
nextEvent == null ||
|
||||
!event.originServerTs.sameEnvironment(nextEvent!.originServerTs);
|
||||
final sameSender = nextEvent != null &&
|
||||
[
|
||||
EventTypes.Message,
|
||||
EventTypes.Sticker,
|
||||
EventTypes.Encrypted,
|
||||
].contains(nextEvent!.type)
|
||||
? nextEvent!.senderId == event.senderId && !displayTime
|
||||
: false;
|
||||
[
|
||||
EventTypes.Message,
|
||||
EventTypes.Sticker,
|
||||
EventTypes.Encrypted,
|
||||
].contains(nextEvent!.type) &&
|
||||
nextEvent?.relationshipType == null &&
|
||||
nextEvent!.senderId == event.senderId &&
|
||||
!displayTime;
|
||||
final textColor = ownMessage
|
||||
? Theme.of(context).colorScheme.onPrimary
|
||||
: Theme.of(context).colorScheme.onBackground;
|
||||
|
|
Loading…
Reference in a new issue