Skip to content

Commit 05116eb

Browse files
committed
Merge branch 'main' into open-details
2 parents 2b9c5ec + 15d2eca commit 05116eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/pages/invitation_selection/invitation_selection.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ class InvitationSelectionController extends State<InvitationSelection> {
181181
if (spaceChild.roomId == null) continue;
182182
final spaceChildRoom =
183183
Matrix.of(context).client.getRoomById(spaceChild.roomId!);
184-
if (spaceChildRoom != null) {
184+
if (spaceChildRoom != null &&
185+
!(await spaceChildRoom.isBotDM) &&
186+
!spaceChildRoom.isDirectChat) {
185187
await spaceChildRoom.invite(id);
186188
await spaceChildRoom.setPower(
187189
id,

0 commit comments

Comments
 (0)