Skip to content

Commit

Permalink
api room_delete: post deprecated, use delete method
Browse files Browse the repository at this point in the history
fixes issue #37
  • Loading branch information
JOJ0 committed Sep 21, 2021
1 parent 862787c commit 50b674c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synadm/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def room_delete(self, room_id, new_room_user_id, room_name, message,
data.update({"room_name": room_name})
if message:
data.update({"message": message})
return self.query("post", f"v1/rooms/{room_id}/delete", data=data)
return self.query("delete", f"v1/rooms/{room_id}", data=data)

def room_make_admin(self, room_id, user_id):
""" Grant a user room admin permission. If the user is not in the room,
Expand Down

0 comments on commit 50b674c

Please sign in to comment.