@pubuduth-aplicy/chat-ui 2.1.90 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pubuduth-aplicy/chat-ui",
3
- "version": "2.1.90",
3
+ "version": "2.1.91",
4
4
  "description": "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -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={`${cdnUrl}${`${cdnUrl}${media.url}`}`}
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 || defaultProfilePicture}
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 || defaultProfilePicture}
107
+ src={participant?.profilePicture ? participant?.profilePicture: defaultProfilePicture}
108
108
  alt="User Avatar"
109
109
  />
110
110
  <span
@@ -1568,6 +1568,7 @@
1568
1568
  .edit-message-input {
1569
1569
  width: 100%;
1570
1570
  padding: 8px;
1571
+ color: #666666;
1571
1572
  border: 1px solid #ddd;
1572
1573
  border-radius: 4px;
1573
1574
  margin-bottom: 5px;