Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33105766
D9047.1768476646.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
925 B
Referenced Files
None
Subscribers
None
D9047.1768476646.diff
View Options
diff --git a/web/push-notif/badge-handler.react.js b/web/push-notif/badge-handler.react.js
--- a/web/push-notif/badge-handler.react.js
+++ b/web/push-notif/badge-handler.react.js
@@ -1,15 +1,18 @@
// @flow
+import invariant from 'invariant';
import * as React from 'react';
-import { useSelector } from 'react-redux';
+import { connectionSelector } from 'lib/selectors/keyserver-selectors.js';
import { unreadCount } from 'lib/selectors/thread-selectors.js';
import electron from '../electron.js';
+import { useSelector } from '../redux/redux-utils.js';
import getTitle from '../title/getTitle.js';
function useBadgeHandler() {
- const connection = useSelector(state => state.connection);
+ const connection = useSelector(connectionSelector);
+ invariant(connection, 'keyserver missing from keyserverStore');
const prevConnection = React.useRef();
const boundUnreadCount = useSelector(unreadCount);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 15, 11:30 AM (4 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5937555
Default Alt Text
D9047.1768476646.diff (925 B)
Attached To
Mode
D9047: [web] Fix wrong selector used to obtain connection
Attached
Detach File
Event Timeline
Log In to Comment