chore: some fixes for activity message overlay not matching underlying message (#2834)

This commit is contained in:
ggurdin 2025-05-19 12:57:20 -04:00 committed by GitHub
parent 3359cfe25d
commit e5e7f40220
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 10 deletions

View file

@ -130,13 +130,6 @@ class ActivityPlanMessage extends StatelessWidget {
AppConfig.borderRadius,
),
),
padding:
event.messageType == MessageTypes.Image
? EdgeInsets.zero
: const EdgeInsets.symmetric(
horizontal: 16,
vertical: 8,
),
constraints: const BoxConstraints(
maxWidth: FluffyThemes.columnWidth * 1.5,
),

View file

@ -80,9 +80,11 @@ class OverlayMessage extends StatelessWidget {
previousEvent!.senderId == event.senderId &&
previousEvent!.originServerTs.sameEnvironment(event.originServerTs);
final textColor = ownMessage
? ThemeData.dark().colorScheme.onPrimary
: theme.colorScheme.onSurface;
final textColor = event.isActivityMessage
? ThemeData.light().colorScheme.onPrimary
: ownMessage
? ThemeData.dark().colorScheme.onPrimary
: theme.colorScheme.onSurface;
final linkColor = theme.brightness == Brightness.light
? theme.colorScheme.primary