|
|
@ -327,10 +327,7 @@ function Invoke-MatrixSync {
|
|
|
|
#.PSObject.Properties because the rooms under .invite are [NoteProperty]
|
|
|
|
#.PSObject.Properties because the rooms under .invite are [NoteProperty]
|
|
|
|
$room_ids = $response.rooms.invite.PSObject.Properties.Name
|
|
|
|
$room_ids = $response.rooms.invite.PSObject.Properties.Name
|
|
|
|
foreach($room_id in $room_ids) {
|
|
|
|
foreach($room_id in $room_ids) {
|
|
|
|
$invites = $response.rooms.invite.$room_id.invite_state.events | Where-Object {$_.content.join_rule -eq 'invite'}
|
|
|
|
Join-MatrixRoom -RoomId $room_id
|
|
|
|
foreach($invite in $invites) {
|
|
|
|
|
|
|
|
Join-MatrixRoom -RoomId $room_id
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return $response.next_batch
|
|
|
|
return $response.next_batch
|
|
|
|