changeset 122:397a88b340f3

browser: fixed call to getRoomsJoined
author Goffi <goffi@goffi.org>
date Sat, 10 Dec 2011 11:32:14 +0100
parents 2d40b0f5fb37
children 5cb852d9757e
files libervia.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libervia.py	Sat Dec 10 10:41:40 2011 +0100
+++ b/libervia.py	Sat Dec 10 11:32:14 2011 +0100
@@ -77,7 +77,7 @@
     def __init__(self):
         LiberviaJsonProxy.__init__(self, "/json_api",
                         ["getContacts", "addContact", "sendMessage", "sendMblog", "getMblogNodes", "getProfileJid", "getHistory", "getPresenceStatus",
-                         "joinMUC", "getRoomJoined", "launchTarotGame", "getTarotCardsPaths", "tarotGameReady", "tarotGameContratChoosed",
+                         "joinMUC", "getRoomsJoined", "launchTarotGame", "getTarotCardsPaths", "tarotGameReady", "tarotGameContratChoosed",
                          "tarotGamePlayCards", "getWaitingSub", "subscription", "delContact", "updateContact", "getCardCache"])
 
 class BridgeSignals(LiberviaJsonProxy):
@@ -255,7 +255,7 @@
         #we can now ask our status
         self.bridge.call('getPresenceStatus', self._getPresenceStatusCb)
         #the rooms where we are
-        self.bridge.call('getRoomJoined', self._getRoomJoinedCb)
+        self.bridge.call('getRoomsJoined', self._getRoomsJoinedCb)
         #and if there is any subscription request waiting for us
         self.bridge.call('getWaitingSub', self._getWaitingSubCb)
 
@@ -359,7 +359,7 @@
                 args = presence_data[entity][resource]
                 self._presenceUpdateCb("%s/%s" % (entity, resource), *args)
 
-    def _getRoomJoinedCb(self, room_data):
+    def _getRoomsJoinedCb(self, room_data):
         for room in room_data:
             self._roomJoinedCb(*room)