Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3356707
D13864.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
677 B
Referenced Files
None
Subscribers
None
D13864.diff
View Options
diff --git a/lib/hooks/peer-list-hooks.js b/lib/hooks/peer-list-hooks.js
--- a/lib/hooks/peer-list-hooks.js
+++ b/lib/hooks/peer-list-hooks.js
@@ -74,16 +74,10 @@
return React.useCallback(
async (userIDs: $ReadOnlyArray<string>, broadcastUpdates: ?boolean) => {
- let result;
- try {
- result = await Promise.race([
- getDeviceListsForUsers(userIDs),
- throwOnTimeout(userIDs),
- ]);
- } catch (e) {
- console.log(e);
- }
-
+ const result = await Promise.race([
+ getDeviceListsForUsers(userIDs),
+ throwOnTimeout(userIDs),
+ ]);
if (!result) {
return null;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 8:07 PM (20 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2577207
Default Alt Text
D13864.diff (677 B)
Attached To
Mode
D13864: [lib] Don't swallow errors in useGetAndUpdateDeviceListsForUsers
Attached
Detach File
Event Timeline
Log In to Comment