add api call for 'list joined rooms'

This commit is contained in:
saces 2026-02-13 23:38:44 +01:00
parent 4ad25be512
commit 36a58a36d7
3 changed files with 34 additions and 0 deletions

View file

@ -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)