Merge pull request #4632 from pangeachat/4586-userid---displayname

add display name to activity summary
This commit is contained in:
ggurdin 2025-11-11 14:02:29 -05:00 committed by GitHub
commit f5b164b10a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -159,7 +159,11 @@ class ButtonControlledCarouselView extends StatelessWidget {
Flexible(
child: SingleChildScrollView(
child: Text(
p.feedback,
p.displayFeedback(
user?.calcDisplayname() ??
p.participantId.localpart ??
p.participantId,
),
style: const TextStyle(fontSize: 12.0),
),
),

View file

@ -29,6 +29,9 @@ class ParticipantSummaryModel {
'superlatives': superlatives,
};
}
String displayFeedback(String displayName) =>
feedback.replaceAll(participantId, displayName);
}
class ActivitySummaryResponseModel {