fix debug url

This commit is contained in:
James 2022-04-05 17:07:02 +01:00
parent 2075ddb626
commit 3e57a56941

View File

@ -16,7 +16,6 @@ function Get-MatrixRoomMessages {
[int]$Limit = 50
)
Write-Debug "URL: $url"
$headers = Get-MatrixAuthHeaders -AccessToken $AccessToken
try {
@ -51,6 +50,8 @@ function Get-MatrixRoomMessages {
+ "?filter=$filterId" `
+ "&full_state=true&set_presence=offline")
Write-Debug "URL: $url"
$res = Invoke-RestMethod -Uri $url -Headers $headers
} catch {
Write-Error $_