Skip to content

Commit

Permalink
Merge pull request #279 from pangeachat/invite-bugs-fix
Browse files Browse the repository at this point in the history
Removed code that was messing with invites
  • Loading branch information
ggurdin authored Jun 3, 2024
2 parents 92b3a48 + ef7cb67 commit 91f9a63
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
16 changes: 0 additions & 16 deletions lib/pages/invitation_selection/invitation_selection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -176,22 +176,6 @@ class InvitationSelectionController extends State<InvitationSelection> {
Future<void> inviteTeacherAction(Room room, String id) async {
await room.invite(id);
await room.setPower(id, ClassDefaultValues.powerLevelOfAdmin);
if (room.isSpace) {
for (final spaceChild in room.spaceChildren) {
if (spaceChild.roomId == null) continue;
final spaceChildRoom =
Matrix.of(context).client.getRoomById(spaceChild.roomId!);
if (spaceChildRoom != null &&
!(await spaceChildRoom.isBotDM) &&
!spaceChildRoom.isDirectChat) {
await spaceChildRoom.invite(id);
await spaceChildRoom.setPower(
id,
ClassDefaultValues.powerLevelOfAdmin,
);
}
}
}
}
// Pangea#

Expand Down
5 changes: 0 additions & 5 deletions lib/pangea/utils/chat_list_handle_space_tap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ void chatListHandleSpaceTap(
duration: const Duration(seconds: 3),
),
);
if (space.isExchange) {
context.go(
'/rooms/join_exchange/${controller.activeSpaceId}',
);
}
},
);
} else {
Expand Down

0 comments on commit 91f9a63

Please sign in to comment.