@kaltura-sdk/avatars 1.15.2 → 1.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.esm.js +10 -1
  2. package/package.json +3 -3
package/index.esm.js CHANGED
@@ -23178,6 +23178,15 @@ const restoreMuteStateAfterTapToTalk = ({
23178
23178
  void avatarRTCClientManager.toggleMuteAudio(true);
23179
23179
  };
23180
23180
 
23181
+ function isEmptyContent(content) {
23182
+ if (content == null) {
23183
+ return true;
23184
+ }
23185
+ if (typeof content === 'string') {
23186
+ return content.trim().length === 0;
23187
+ }
23188
+ return Object.keys(content).length === 0;
23189
+ }
23181
23190
  const source = createTinyPubsubEventsSource(websocketMessage, {
23182
23191
  agent_raw_text: {
23183
23192
  schema: agentRawTextSchema
@@ -23207,7 +23216,7 @@ const agentRecoveryMonitor = fromCallback(({
23207
23216
  currentTurnId = payload.turnId;
23208
23217
  hasAvatarType = false;
23209
23218
  }
23210
- if (parsedDelta.type === 'avatar') {
23219
+ if (parsedDelta.type === 'avatar' && !isEmptyContent(parsedDelta.content)) {
23211
23220
  hasAvatarType = true;
23212
23221
  }
23213
23222
  if (parsedDelta.type === 'share' && parsedDelta.segmentStart && parsedDelta.segmentEnd) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaltura-sdk/avatars",
3
- "version": "1.15.2",
3
+ "version": "1.15.4",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -9,8 +9,8 @@
9
9
  },
10
10
  "types": "./src/index.d.ts",
11
11
  "dependencies": {
12
- "@kaltura-sdk/rtc-avatar": "^1.32.27",
13
- "@kaltura-sdk/rtc-core": "^1.25.16",
12
+ "@kaltura-sdk/rtc-avatar": "^1.32.28",
13
+ "@kaltura-sdk/rtc-core": "^1.25.17",
14
14
  "@local/genie-shared-utils": "^1.0.0",
15
15
  "@unisphere/core": "^1.99.0",
16
16
  "@unisphere/genie-types": "^1.39.1",