Merge branch 'main' into open-details

pull/1077/head
Gabby Gurdin 2 years ago
commit 05116eba31

@ -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,

Loading…
Cancel
Save