diff options
author | Alex Auvolat <alex@adnab.me> | 2020-03-04 23:04:01 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-03-04 23:04:01 +0100 |
commit | 3288cea61c7b7338ac996069be367af71bdbcd0f (patch) | |
tree | 4d594adf3dc496cc52869d6289b2b62fe95a45e9 /external | |
parent | 979755a324dfccd2dd9e7e861825c9082bede99b (diff) | |
download | easybridge-3288cea61c7b7338ac996069be367af71bdbcd0f.tar.gz easybridge-3288cea61c7b7338ac996069be367af71bdbcd0f.zip |
Don't flood Messenger bridge logs to stderr by default
Diffstat (limited to 'external')
-rwxr-xr-x | external/messenger.py | 5 |
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"]) |