fix: always pass context to classCode function
This commit is contained in:
parent
44af47a1ee
commit
7eb7aa5104
3 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue