@pubuduth-aplicy/chat-ui 2.1.89 → 2.1.91
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
|
@@ -91,7 +91,7 @@ const Message = ({ message }: MessageProps) => {
|
|
|
91
91
|
<h4>{status}</h4>
|
|
92
92
|
<div className="details">
|
|
93
93
|
<p>Service: {booking?.serviceId}</p>
|
|
94
|
-
<p>Date: {booking?.date}</p>
|
|
94
|
+
<p>Date: {booking?.date.split('T')[0]}</p>
|
|
95
95
|
<p>Time: {booking?.time}</p>
|
|
96
96
|
</div>
|
|
97
97
|
|
|
@@ -357,7 +357,7 @@ const Message = ({ message }: MessageProps) => {
|
|
|
357
357
|
<div className="circular-progress-container">
|
|
358
358
|
<div className="media-preview-background">
|
|
359
359
|
<img
|
|
360
|
-
src={`${
|
|
360
|
+
src={`${`${cdnUrl}${media.url}`}`}
|
|
361
361
|
alt={media.name}
|
|
362
362
|
className="blurred-preview"
|
|
363
363
|
/>
|
|
@@ -408,10 +408,10 @@ const Message = ({ message }: MessageProps) => {
|
|
|
408
408
|
onClick={() => window.open(`${cdnUrl}${media.url}`, "_blank")}
|
|
409
409
|
/>
|
|
410
410
|
) : media.type === "video" ? (
|
|
411
|
-
<video controls className="media-content">
|
|
411
|
+
<video controls className="media-content" preload="metadata">
|
|
412
412
|
<source
|
|
413
413
|
src={`${cdnUrl}${media.url}`}
|
|
414
|
-
type={`video/${`${cdnUrl}${media.url}`.split(".").pop()}`}
|
|
414
|
+
type={`video/${`${cdnUrl}${media.url}`.split(".").pop()?.toLocaleLowerCase()}`}
|
|
415
415
|
/>
|
|
416
416
|
</video>
|
|
417
417
|
) : (
|
|
@@ -96,7 +96,7 @@ const MessageContainer = () => {
|
|
|
96
96
|
<img
|
|
97
97
|
className="chatMessageContainerInnerImg"
|
|
98
98
|
alt="Profile"
|
|
99
|
-
src={participant?.profilePicture
|
|
99
|
+
src={participant?.profilePicture ? participant?.profilePicture: defaultProfilePicture}
|
|
100
100
|
/>
|
|
101
101
|
)}
|
|
102
102
|
<div className="chatMessageContainerOutter">
|
|
@@ -104,7 +104,7 @@ const Conversation = ({ conversation }: ConversationProps) => {
|
|
|
104
104
|
<>
|
|
105
105
|
<img
|
|
106
106
|
className="w-10 h-10 rounded-full"
|
|
107
|
-
src={participant?.profilePicture
|
|
107
|
+
src={participant?.profilePicture ? participant?.profilePicture: defaultProfilePicture}
|
|
108
108
|
alt="User Avatar"
|
|
109
109
|
/>
|
|
110
110
|
<span
|