bkper-js 1.34.2 → 1.34.3
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/lib/index.d.ts +1 -0
- package/lib/model/Conversation.js +4 -0
- package/lib/model/Message.js +4 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/model/Message.js
CHANGED
|
@@ -157,6 +157,10 @@ export class Message {
|
|
|
157
157
|
const responseMessage = new Message(this.conversation, responsePayload);
|
|
158
158
|
this.conversation.updateMessagesCache(this);
|
|
159
159
|
this.conversation.updateMessagesCache(responseMessage);
|
|
160
|
+
// Set conversation updatedAt
|
|
161
|
+
if (responsePayload.createdAt) {
|
|
162
|
+
this.conversation.setUpdatedAt(responsePayload.createdAt);
|
|
163
|
+
}
|
|
160
164
|
return this;
|
|
161
165
|
});
|
|
162
166
|
}
|