Add custom MatrixMessage type

This commit is contained in:
2022-04-05 15:56:22 +01:00
parent 0fe7967b23
commit c1f4ea82fb
3 changed files with 36 additions and 2 deletions

View File

@ -70,6 +70,7 @@ function Get-MatrixRoomMessages {
FormattedBody = $_.content.formatted_body
MsgType = $_.content.msgtype
}
$formattedEvent.PSObject.TypeNames.Insert(0, 'MatrixMessage')
$formattedEvents += $formattedEvent
}