@product7/feedback-sdk 1.4.9 → 1.5.0
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
|
@@ -99,7 +99,10 @@ export class MessengerState {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
_getMessageAttachmentsSignature(message) {
|
|
102
|
-
if (
|
|
102
|
+
if (
|
|
103
|
+
!Array.isArray(message?.attachments) ||
|
|
104
|
+
message.attachments.length === 0
|
|
105
|
+
) {
|
|
103
106
|
return '';
|
|
104
107
|
}
|
|
105
108
|
|
|
@@ -117,7 +117,7 @@ export class ChatView {
|
|
|
117
117
|
|
|
118
118
|
<div class="messenger-chat-compose">
|
|
119
119
|
<button class="sdk-btn-icon messenger-compose-attach" aria-label="Attach file">
|
|
120
|
-
<
|
|
120
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><rect width="16" height="16" fill="none"/><path d="M160,80,76.69,164.69a16,16,0,0,0,22.63,22.62L198.63,86.63a32,32,0,0,0-45.26-45.26L54.06,142.06a48,48,0,0,0,67.88,67.88L204,128" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/></svg>
|
|
121
121
|
</button>
|
|
122
122
|
<div class="messenger-compose-input-wrapper">
|
|
123
123
|
<textarea class="messenger-compose-input" placeholder="${placeholder}" rows="1"></textarea>
|