aboutsummaryrefslogtreecommitdiff
path: root/external/messenger.py
diff options
context:
space:
mode:
Diffstat (limited to 'external/messenger.py')
-rwxr-xr-xexternal/messenger.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/external/messenger.py b/external/messenger.py
index 684f7a0..b5dd2d3 100755
--- a/external/messenger.py
+++ b/external/messenger.py
@@ -234,6 +234,8 @@ class MessengerBridge:
self.client.setBridge(self)
+ self.my_user_id = self.getUserIdFromUid(self.client.uid)
+
threads = self.client.fetchThreadList()
# ensure we have a correct mapping for bridged user IDs to fb uids
# (this should be fast)
@@ -252,8 +254,7 @@ class MessengerBridge:
self.close()
elif ty == GET_USER:
- userId = self.getUserIdFromUid(self.client.uid)
- return {"_type": REP_OK, "user": userId}
+ return {"_type": REP_OK, "user": self.my_user_id}
elif ty == JOIN:
self.ensure_i_joined(cmd["room"])