fix: always pass context to classCode function

This commit is contained in:
ggurdin 2025-02-03 10:19:02 -05:00
parent 44af47a1ee
commit 7eb7aa5104
No known key found for this signature in database
GPG key ID: A01CB41737CBB478
3 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,7 @@ void chatListHandleSpaceTap(
if (rooms.any((s) => s.spaceChildren.any((c) => c.roomId == space.id))) {
autoJoin(space);
} else if (justInputtedCode != null &&
justInputtedCode == space.classCode) {
justInputtedCode == space.classCode(context)) {
// do nothing
} else {
showAlertDialog(context);

View file

@ -41,7 +41,7 @@ class ClassInvitationButtons extends StatelessWidget {
final String initialUrl =
kIsWeb ? html.window.origin! : Environment.frontendURL;
FluffyShare.share(
"$initialUrl/#/join_with_link?${SpaceConstants.classCode}=${room.classCode}",
"$initialUrl/#/join_with_link?${SpaceConstants.classCode}=${room.classCode(context)}",
context,
);
},

View file

@ -6,7 +6,7 @@ description: Learn a language while texting your friends.
# Pangea#
publish_to: none
# On version bump also increase the build number for F-Droid
version: 4.1.6+1
version: 4.1.7+3
environment:
sdk: ">=3.0.0 <4.0.0"