chore: update knock copy to say space instead of chat (#2612)

This commit is contained in:
ggurdin 2025-05-01 16:09:14 -04:00 committed by GitHub
parent 6407041221
commit f92c191ed5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 3 deletions

View file

@ -4878,5 +4878,13 @@
"newGrammar": "New grammar concepts",
"congratulationsOnReaching": "Congratulations on reaching ",
"seeDetails": "See Details",
"choosePracticeMode": "Click on one of the buttons above to start a practice activity"
"choosePracticeMode": "Click on one of the buttons above to start a practice activity",
"userWouldLikeToChangeTheSpace": "{user} would like to join the space.",
"@userWouldLikeToChangeTheSpace": {
"placeholders": {
"user": {
"type": "String"
}
}
}
}

View file

@ -75,8 +75,15 @@ class UserBottomSheetView extends StatelessWidget {
title: Padding(
padding: const EdgeInsets.only(bottom: 12.0),
child: Text(
L10n.of(context)
.userWouldLikeToChangeTheChat(displayname),
// #Pangea
// L10n.of(context)
// .userWouldLikeToChangeTheChat(displayname),
(user?.room.isSpace ?? false)
? L10n.of(context)
.userWouldLikeToChangeTheSpace(displayname)
: L10n.of(context)
.userWouldLikeToChangeTheChat(displayname),
// Pangea#
),
),
subtitle: Row(