@sawport/react-sdk 0.1.0-alpha.18 → 0.1.0-alpha.19

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/dist/index.js CHANGED
@@ -45990,7 +45990,7 @@ function ChatWidgetScreen({
45990
45990
  const customer = (_b3 = dataRef.current) == null ? void 0 : _b3.customer;
45991
45991
  const isSender = ((_c3 = customer == null ? void 0 : customer.user) == null ? void 0 : _c3.id) === (((_d3 = message.user) == null ? void 0 : _d3.id) || message.user);
45992
45992
  message.isSender = isSender;
45993
- !isSender && videoRef.current.playSound(messageSound);
45993
+ !isSender && videoRef.current.playSound(messageSound, (sound) => sound.loop = false);
45994
45994
  setState((s2) => {
45995
45995
  s2.data.data = [...s2.data.data, message];
45996
45996
  return s2;