From 3288cea61c7b7338ac996069be367af71bdbcd0f Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 4 Mar 2020 23:04:01 +0100 Subject: Don't flood Messenger bridge logs to stderr by default --- external/messenger.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'external') 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"]) -- cgit v1.2.3