We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b9c5ec + 15d2eca commit 05116ebCopy full SHA for 05116eb
lib/pages/invitation_selection/invitation_selection.dart
@@ -181,7 +181,9 @@ class InvitationSelectionController extends State<InvitationSelection> {
181
if (spaceChild.roomId == null) continue;
182
final spaceChildRoom =
183
Matrix.of(context).client.getRoomById(spaceChild.roomId!);
184
- if (spaceChildRoom != null) {
+ if (spaceChildRoom != null &&
185
+ !(await spaceChildRoom.isBotDM) &&
186
+ !spaceChildRoom.isDirectChat) {
187
await spaceChildRoom.invite(id);
188
await spaceChildRoom.setPower(
189
id,
0 commit comments