push don't add teachers to DMs or bot chat
This commit is contained in:
parent
9501f6f964
commit
df17a8fdd0
2 changed files with 903 additions and 59 deletions
|
|
@ -181,7 +181,9 @@ class InvitationSelectionController extends State<InvitationSelection> {
|
||||||
if (spaceChild.roomId == null) continue;
|
if (spaceChild.roomId == null) continue;
|
||||||
final spaceChildRoom =
|
final spaceChildRoom =
|
||||||
Matrix.of(context).client.getRoomById(spaceChild.roomId!);
|
Matrix.of(context).client.getRoomById(spaceChild.roomId!);
|
||||||
if (spaceChildRoom != null) {
|
if (spaceChildRoom != null &&
|
||||||
|
!(await spaceChildRoom.isBotDM) &&
|
||||||
|
!spaceChildRoom.isDirectChat) {
|
||||||
await spaceChildRoom.invite(id);
|
await spaceChildRoom.invite(id);
|
||||||
await spaceChildRoom.setPower(
|
await spaceChildRoom.setPower(
|
||||||
id,
|
id,
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue