Skip to content

Commit

Permalink
community join fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahira100 committed Jan 27, 2024
1 parent 3b70f84 commit 443d394
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/smartchessboard/lib/screens/join_community.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,21 @@ class _JoinCommunityScreenState extends State<JoinCommunityScreen> {
builder: (BuildContext context) {
return AlertDialog(
title: Text(
"${nickname}?"+" has sent invitation"),
"${nickname}"+" has sent invitation"),
actions: [
TextButton(
onPressed: () {
_socketMethods.communityGameAcceptorWithdrawReply(profileId, true);
Navigator.of(context)
.pop();
},
child: Text("Accept"),
),
TextButton(
onPressed: () {
_socketMethods.communityGameAcceptorWithdrawReply(profileId, false);
Navigator.of(context)
.pop();
},
child: Text("Reject"),
),
Expand Down

0 comments on commit 443d394

Please sign in to comment.