@webitel/ui-sdk 24.8.3 → 24.8.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "24.8.3",
3
+ "version": "24.8.5",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -40,6 +40,7 @@ export default class NotificationsStoreModule extends BaseStoreModule {
40
40
  broadcastChannel: null, // in order to reset the tab title with unread number
41
41
  unreadCount: 0,
42
42
  currentlyPlaying: false,
43
+ isHangupSoundAllowed: false, // for prevent pause() of all sounds after end call
43
44
  };
44
45
 
45
46
  getters = {
@@ -121,9 +122,6 @@ export default class NotificationsStoreModule extends BaseStoreModule {
121
122
  if (context.getters.IS_SOUND_ALLOWED
122
123
  && !localStorage.getItem('wtIsPlaying')
123
124
  ) {
124
- if (action === CallActions.Hangup
125
- && !localStorage.getItem('settings/callEndSound'))
126
- return;
127
125
 
128
126
  const audio = sound instanceof Audio ? sound : new Audio(sound);
129
127
 
@@ -192,5 +190,8 @@ export default class NotificationsStoreModule extends BaseStoreModule {
192
190
  SET_UNREAD_COUNT: (state, count) => {
193
191
  state.unreadCount = count;
194
192
  },
193
+ SET_HANGUP_STATE: (state, value) => {
194
+ state.isHangupSoundAllowed = value;
195
+ },
195
196
  };
196
197
  }