Skip to content

Commit fa8dc83

Browse files
authored
Merge pull request #66 from Arthurk12/update-sdk
chore: Updates SDK to v0.1.5
2 parents 4dc3b5c + 81fb79f commit fa8dc83

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"requiredSdkVersion": "~0.0.70",
2+
"requiredSdkVersion": "~0.1.5",
33
"name": "PickRandomUserPlugin",
44
"javascriptEntrypointUrl": "PickRandomUserPlugin.js",
55
"dataChannels": [

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@types/react-dom": "^18.2.6",
1515
"@types/webpack-env": "^1.18.8",
1616
"babel-plugin-syntax-dynamic-import": "^6.18.0",
17-
"bigbluebutton-html-plugin-sdk": "0.1.2",
17+
"bigbluebutton-html-plugin-sdk": "0.1.5",
1818
"path": "^0.12.7",
1919
"react": "^18.2.0",
2020
"react-chat-elements": "^12.0.14",

src/components/pick-random-user/component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function PickRandomUserPlugin({ pluginApi, intl }: PickRandomUserPluginProps) {
2020
const [
2121
pickedUserWithEntryId,
2222
setPickedUserWithEntryId] = useState<PickedUserWithEntryId | undefined>();
23+
const shouldPluginUnmount = pluginApi.useShouldUnmountPlugin();
2324
const currentUserInfo = pluginApi.useCurrentUser();
2425
const { data: currentUser } = currentUserInfo;
2526

@@ -102,7 +103,7 @@ function PickRandomUserPlugin({ pluginApi, intl }: PickRandomUserPluginProps) {
102103
currentUser,
103104
]);
104105
if (!pickedUserWithEntryId) return null;
105-
return (
106+
return !shouldPluginUnmount && (
106107
<PickUserModal
107108
{...{
108109
intl,

0 commit comments

Comments
 (0)