Page MenuHomePhorge

D15445.1765039078.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D15445.1765039078.diff

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

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)

Event Timeline