From eb54ff48051acf9a5231347cc1a0803c1615b281 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Thu, 25 Apr 2024 16:50:04 -0500 Subject: [PATCH] call updateRequestedCapabilities --- frontend/src/WebApp.jsx | 2 +- frontend/src/Widget.jsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/WebApp.jsx b/frontend/src/WebApp.jsx index 576e406..ed86a1f 100644 --- a/frontend/src/WebApp.jsx +++ b/frontend/src/WebApp.jsx @@ -229,7 +229,7 @@ function WebApp() { Work1Contract.events.AvailabilityStaked().off(); OnboardingContract.events.AvailabilityStaked().off(); }; - }, [provider, account, chainId, balance, dispatchValidationPool, dispatchPost, reputation, + }, [provider, account, chainId, balance, dispatchValidationPool, dispatchPost, DAORef, workRef, onboardingRef, fetchPost, fetchPosts, fetchReputation, fetchValidationPool, fetchValidationPools, fetchMembers, ]); diff --git a/frontend/src/Widget.jsx b/frontend/src/Widget.jsx index b3f0dad..9d12552 100644 --- a/frontend/src/Widget.jsx +++ b/frontend/src/Widget.jsx @@ -235,7 +235,7 @@ function Widget() { Work1Contract.events.AvailabilityStaked().off(); OnboardingContract.events.AvailabilityStaked().off(); }; - }, [provider, account, chainId, balance, dispatchValidationPool, dispatchPost, reputation, + }, [provider, account, chainId, balance, dispatchValidationPool, dispatchPost, DAORef, workRef, onboardingRef, fetchPost, fetchPosts, fetchReputation, fetchValidationPool, fetchValidationPools, fetchMembers, ]); @@ -261,6 +261,8 @@ function Widget() { widgetApi.current.requestCapability(MatrixCapabilities.AlwaysOnScreen); + widgetApi.current.updateRequestedCapabilities(); + // widgetApi.current.requestCapabilities([ // WidgetEventCapability.forRoomEvent( // EventDirection.Send,