mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-06-10 06:31:59 +02:00
Upgrade backend dependencies
This commit is contained in:
parent
d11be77b44
commit
5c8569b08b
4 changed files with 252 additions and 163 deletions
|
@ -36,7 +36,7 @@ type StateEventPowerLevelContent struct {
|
|||
// GetRoomPowerLevelState returns the rooms current power levels from the state
|
||||
func GetRoomPowerLevelState(matrixClient *mautrix.Client, roomId id.RoomID) (*StateEventPowerLevelContent, error) {
|
||||
// https://matrix.example.com/_matrix/client/r0/rooms/<roomId.String()>/state
|
||||
url := matrixClient.BuildURL("rooms", roomId.String(), "state")
|
||||
url := matrixClient.BuildClientURL("r0", "rooms", roomId.String(), "state")
|
||||
|
||||
res, err := matrixClient.MakeRequest("GET", url, nil, nil)
|
||||
if err != nil {
|
||||
|
@ -103,7 +103,7 @@ type StateEventRoomNameContent struct {
|
|||
|
||||
func GetRoomNameState(matrixClient *mautrix.Client, roomId id.RoomID) (*StateEventRoomNameContent, error) {
|
||||
// https://matrix.example.com/_matrix/client/r0/rooms/<roomId.String()>/state
|
||||
url := matrixClient.BuildURL("rooms", roomId.String(), "state")
|
||||
url := matrixClient.BuildClientURL("r0", "rooms", roomId.String(), "state")
|
||||
|
||||
res, err := matrixClient.MakeRequest("GET", url, nil, nil)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue