MDL-77917 communication_matrix: Use v1.7 upload content API
commit6d1bd4787fa95c5c1328c421c298045c5f01b2ab
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 11 Jul 2023 02:24:37 +0000 (11 10:24 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Thu, 24 Aug 2023 03:59:30 +0000 (24 11:59 +0800)
tree0e33f1c8b4420241f066c992902fed5fcf1572fa
parent914686bc5efd60dcdbc045bdbd235ae4118a028f
MDL-77917 communication_matrix: Use v1.7 upload content API

Version 1.7 of the Matrix API adds a new endpoint for uploading media.
`_matrix/media/v1/create` and adds a new path parameter to the existing
`_matrix/media/v3/upload` endpoint.
communication/provider/matrix/classes/communication_feature.php
communication/provider/matrix/classes/local/spec/features/matrix/media_create_v1.php [copied from communication/provider/matrix/classes/local/spec/features/matrix/upload_content_v3.php with 60% similarity]
communication/provider/matrix/classes/local/spec/features/matrix/upload_content_v3.php
communication/provider/matrix/classes/local/spec/v1p7.php
communication/provider/matrix/tests/matrix_client_test.php