Merge pull request #4632 from pangeachat/4586-userid---displayname
add display name to activity summary
This commit is contained in:
commit
f5b164b10a
2 changed files with 8 additions and 1 deletions
|
|
@ -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),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@ class ParticipantSummaryModel {
|
|||
'superlatives': superlatives,
|
||||
};
|
||||
}
|
||||
|
||||
String displayFeedback(String displayName) =>
|
||||
feedback.replaceAll(participantId, displayName);
|
||||
}
|
||||
|
||||
class ActivitySummaryResponseModel {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue