Merge branch 'main' into open-details

This commit is contained in:
Gabby Gurdin 2024-04-19 10:54:26 -04:00
commit 05116eba31

View file

@ -181,7 +181,9 @@ class InvitationSelectionController extends State<InvitationSelection> {
if (spaceChild.roomId == null) continue;
final spaceChildRoom =
Matrix.of(context).client.getRoomById(spaceChild.roomId!);
if (spaceChildRoom != null) {
if (spaceChildRoom != null &&
!(await spaceChildRoom.isBotDM) &&
!spaceChildRoom.isDirectChat) {
await spaceChildRoom.invite(id);
await spaceChildRoom.setPower(
id,