Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32159772
D15445.1765039078.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D15445.1765039078.diff
View Options
diff --git a/native/push/push-handler.react.js b/native/push/push-handler.react.js
--- a/native/push/push-handler.react.js
+++ b/native/push/push-handler.react.js
@@ -325,8 +325,9 @@
const curConnections = this.props.connection;
const currentUnreadThickThreads = this.props.unreadThickThreadIDs;
- const currentTunnelbrokerConnectionStatus =
- this.props.tunnelbrokerSocketState.connected;
+ const isTunnelbrokerAuthorized =
+ this.props.tunnelbrokerSocketState.connected &&
+ this.props.tunnelbrokerSocketState.isAuthorized;
const currentFarcasterUnreadCount = this.props.farcasterUnreadCount;
@@ -354,7 +355,7 @@
}> = [];
const handleUnreadThickThreadIDsInNotifsStorage = (async () => {
- if (currentTunnelbrokerConnectionStatus) {
+ if (isTunnelbrokerAuthorized) {
await commCoreModule.updateUnreadThickThreadsInNotifsStorage(
currentUnreadThickThreads,
);
@@ -364,7 +365,7 @@
})();
const handleUnreadFarcasterInNotifsStorage = (async () => {
- if (currentTunnelbrokerConnectionStatus) {
+ if (isTunnelbrokerAuthorized) {
const farcasterEntry = {
id: 'FARCASTER',
unreadCount: currentFarcasterUnreadCount,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 4:37 PM (11 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5839331
Default Alt Text
D15445.1765039078.diff (1 KB)
Attached To
Mode
D15445: [native] Check if tunnelbroker is authorized when handling the badge count
Attached
Detach File
Event Timeline
Log In to Comment