Skip to content

Support chat blink and counter fix fedev-4067#2634

Open
timgmxio wants to merge 2 commits into
releasefrom
support-chat-blink-and-counter-fix
Open

Support chat blink and counter fix fedev-4067#2634
timgmxio wants to merge 2 commits into
releasefrom
support-chat-blink-and-counter-fix

Conversation

@timgmxio

Copy link
Copy Markdown
Contributor

No description provided.

timgmxio added 2 commits July 10, 2026 16:51
- useShowSupportChat: @privy-io/wagmi hardcodes reconnectOnMount: false,
  so on page load wagmi reports plain "disconnected" (never
  "reconnecting") while Privy restores the session — the
  last-connected-state cache never engaged and was overwritten to false
  on every load, hiding the Support button until the wallet reconnected.
  Gate visibility and cache writes on wallet initialization
  (privy/wallets ready + connecting/reconnecting) instead.

- useSupportChat: Intercom() from @intercom/messenger-js-sdk is a no-op
  after the first call, so re-initialization after shutdown() (e.g. a
  transient wagmi disconnect) left the messenger dead — no unread events
  and the chat would not open until a full reload. Revive it with an
  explicit boot() and reset the custom-attributes guard so they are
  re-applied to the new session.

- useSupportChat: update({ theme_mode }) right after boot suppresses the
  initial unread count delivery in the Intercom widget — this is why the
  unread dot vanished on refresh until the messenger was opened manually
  (verified against a minimal reproduction; attribute updates are
  harmless). Pass theme_mode in the boot settings and send theme updates
  only on actual theme switches.
Deduplicate the wallet-initialization check (Privy/wallets readiness +
wagmi connecting status) previously inlined in EarnRedirect and
useShowSupportChat.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying gmx-interface-home with  Cloudflare Pages  Cloudflare Pages

Latest commit: cfc1f71
Status: ✅  Deploy successful!
Preview URL: https://19424e64.gmx-interface-home.pages.dev
Branch Preview URL: https://support-chat-blink-and-count.gmx-interface-home.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying gmx-interface with  Cloudflare Pages  Cloudflare Pages

Latest commit: cfc1f71
Status: ✅  Deploy successful!
Preview URL: https://12dba1b0.gmx-interface.pages.dev
Branch Preview URL: https://support-chat-blink-and-count.gmx-interface.pages.dev

View logs

@timgmxio timgmxio changed the title Support chat blink and counter fix Support chat blink and counter fix fedev-4067 Jul 10, 2026
@github-actions

Copy link
Copy Markdown

Playwright Component Test Report

All tests passed.

View Report

Commit cfc1f71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant