fix: remove highlight when message is unpinned

This commit is contained in:
avashilling 2025-08-01 12:20:45 -04:00
parent 7faf4a6c2d
commit 2d23bd914c

View file

@ -293,7 +293,10 @@ class Message extends StatelessWidget {
borderRadius: BorderRadius.circular(
AppConfig.borderRadius / 2,
),
color: selected || highlightMarker
color: selected ||
(highlightMarker &&
event.room.pinnedEventIds
.contains(event.eventId))
? theme.colorScheme.secondaryContainer
.withAlpha(128)
: Colors.transparent,