add api call for 'list joined rooms'
This commit is contained in:
parent
4ad25be512
commit
36a58a36d7
3 changed files with 34 additions and 0 deletions
|
|
@ -81,6 +81,10 @@ class _MXClient:
|
|||
r = lib.apiv0_leaveroom(self.client_id, roomid.encode(encoding="utf-8"))
|
||||
checkApiError(r)
|
||||
|
||||
def joinedrooms(self):
|
||||
r = lib.apiv0_joinedrooms(self.client_id)
|
||||
return checkApiError(r)
|
||||
|
||||
def process_event(self, evt):
|
||||
if hasattr(self, "on_event") and callable(self.on_event):
|
||||
self.on_event(evt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue