diff --git a/docs/samples/browser-plugin-presence/app.js b/docs/samples/browser-plugin-presence/app.js index 5c4dea56769..586ab7e56ba 100644 --- a/docs/samples/browser-plugin-presence/app.js +++ b/docs/samples/browser-plugin-presence/app.js @@ -115,7 +115,7 @@ function setSelfPresence() { } function getUserPresence() { - const userId = getUserPresenceElm.value; + const userId = getUserPresenceElm.value.trim(); webex.presence.get(userId) .then((response) => { userPresenceStatusElm.innerText = JSON.stringify(response, null, 2); @@ -137,7 +137,7 @@ function startPresenceListener() { } function subscribePresence() { - const ids = subscribeUserIds.value.split(','); + const ids = subscribeUserIds.value.trim().split(','); startPresenceListener(); webex.presence.subscribe(ids) .then(() => { diff --git a/package.json b/package.json index f1bf6992da6..35c95473bad 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "build:dev": "NODE_ENV=development node ./tooling/index.js build", "prebuild:modules": "yarn && yarn @tools build:src && yarn @legacy-tools build:src && yarn workspace @webex/webex-core build:src && yarn @all build:src", "prebuild:docs": "rimraf ./docs/api", - "build:docs": "yarn workspace @webex/calling run build:docs && documentation build --config documentation/config.yml --format html --output ./docs/api --github ./packages/webex/src/index.js ./packages/@webex/plugin-*/src/index.[tj]s --babel=./babel.config.json", + "build:docs": "yarn workspace @webex/plugin-presence run build:docs && yarn workspace @webex/calling run build:docs && documentation build --config documentation/config.yml --format html --output ./docs/api --github ./packages/webex/src/index.js ./packages/@webex/plugin-*/src/index.[tj]s --babel=./babel.config.json", "check-karma-output": "./scripts/analyze-output.sh", "build:package": "node ./tooling/index.js build", "changelog:generate": "npx standard-changelog", diff --git a/packages/@webex/plugin-presence/src/interface.ts b/packages/@webex/plugin-presence/src/interface.ts index cfb69b021e9..dbe735eb3a2 100644 --- a/packages/@webex/plugin-presence/src/interface.ts +++ b/packages/@webex/plugin-presence/src/interface.ts @@ -8,7 +8,7 @@ export interface IPresenceStatusObject { expiresTime: string; vectorCounters: object; suppressNotifications: boolean; - lastseeeDeviceUrl: string; + lastseenDeviceUrl: string; } export interface IEventPayload {