Removed code that was messing with invites
This commit is contained in:
parent
a0b358f732
commit
2db8c9397f
2 changed files with 0 additions and 21 deletions
|
|
@ -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#
|
||||
|
||||
|
|
|
|||
|
|
@ -75,11 +75,6 @@ void chatListHandleSpaceTap(
|
|||
duration: const Duration(seconds: 3),
|
||||
),
|
||||
);
|
||||
if (space.isExchange) {
|
||||
context.go(
|
||||
'/rooms/join_exchange/${controller.activeSpaceId}',
|
||||
);
|
||||
}
|
||||
},
|
||||
);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue