@sprucelabs/spruce-feed-view-controllers 5.0.180 → 5.0.181
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.
|
@@ -38,8 +38,7 @@ class FeedCardViewController extends heartwood_view_controllers_1.AbstractViewCo
|
|
|
38
38
|
return this.sendMessage(message);
|
|
39
39
|
}
|
|
40
40
|
handleDidUpdateFeedItem(item) {
|
|
41
|
-
|
|
42
|
-
const trackingId = (_a = item.context) === null || _a === void 0 ? void 0 : _a.trackingId;
|
|
41
|
+
const trackingId = item.context?.trackingId;
|
|
43
42
|
if (trackingId) {
|
|
44
43
|
item.id = trackingId;
|
|
45
44
|
}
|
|
@@ -50,7 +49,6 @@ class FeedCardViewController extends heartwood_view_controllers_1.AbstractViewCo
|
|
|
50
49
|
this.handleDidUpdateFeedItem(item);
|
|
51
50
|
}
|
|
52
51
|
async sendMessage(message) {
|
|
53
|
-
var _a;
|
|
54
52
|
const id = `${new Date().getTime()}-${this.sentMessageCount++}`;
|
|
55
53
|
const added = this.addSentMessage(message, id);
|
|
56
54
|
const client = await this.connectToApi();
|
|
@@ -78,7 +76,7 @@ class FeedCardViewController extends heartwood_view_controllers_1.AbstractViewCo
|
|
|
78
76
|
title: 'Failed to send message!',
|
|
79
77
|
message: err.message,
|
|
80
78
|
});
|
|
81
|
-
console.error(
|
|
79
|
+
console.error(err.stack ?? err.message);
|
|
82
80
|
return false;
|
|
83
81
|
}
|
|
84
82
|
return true;
|