chore: update ping notification content (#3855)

pull/2245/head
ggurdin 2 months ago committed by GitHub
parent 9e8689f595
commit a5728a1e20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -5266,5 +5266,17 @@
"generatingSummary": "Analyzing chat and generating results", "generatingSummary": "Analyzing chat and generating results",
"instructionsLanguage": "Instructions language", "instructionsLanguage": "Instructions language",
"findCourse": "Find a course", "findCourse": "Find a course",
"activityCompletedDesc": "Your completed activity was added to analytics where you can review and practice the language you used." "activityCompletedDesc": "Your completed activity was added to analytics where you can review and practice the language you used.",
"pingParticipantsNotification": "{user} is looking for users to join the activity session in {room}",
"@pingParticipantsNotification": {
"type": "String",
"placeholders": {
"user": {
"type": "String"
},
"room": {
"type": "String"
}
}
}
} }

@ -138,7 +138,12 @@ class ActivitySessionStartController extends State<ActivitySessionStartPage> {
throw Exception("Activity is not part of a course"); throw Exception("Activity is not part of a course");
} }
await room.courseParent!.sendTextEvent(""); await room.courseParent!.sendTextEvent(
L10n.of(context).pingParticipantsNotification(
room.client.userID!.localpart ?? room.client.userID!,
room.getLocalizedDisplayname(MatrixLocals(L10n.of(context))),
),
);
} }
@override @override

Loading…
Cancel
Save