@sprucelabs/spruce-feed-view-controllers 1.2.0 → 1.3.1
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.
|
@@ -11,6 +11,7 @@ export default class FeedCardViewController extends AbstractViewController<Card>
|
|
|
11
11
|
private pendingAddedMessages;
|
|
12
12
|
protected feedVc: FeedViewController;
|
|
13
13
|
protected recipientId?: string;
|
|
14
|
+
private locationId?;
|
|
14
15
|
constructor(options: ViewControllerOptions & FeedCardViewControllerOptions);
|
|
15
16
|
private FeedVc;
|
|
16
17
|
private CardVc;
|
|
@@ -133,6 +133,7 @@ class FeedCardViewController extends AbstractViewController {
|
|
|
133
133
|
this.recipientId = recipientId;
|
|
134
134
|
this.predicates = predicates;
|
|
135
135
|
this.auth = authenticator;
|
|
136
|
+
this.locationId = locationId;
|
|
136
137
|
const client = yield this.connectToApi();
|
|
137
138
|
yield client.on('feed.did-update-feed::v2023_03_04', this.handleDidUpdateFeed);
|
|
138
139
|
if (recipientId) {
|
|
@@ -172,6 +173,9 @@ class FeedCardViewController extends AbstractViewController {
|
|
|
172
173
|
const client = yield this.connectToApi();
|
|
173
174
|
try {
|
|
174
175
|
const [{ feed }] = yield client.emitAndFlattenResponses('get-feed::v2020_12_25', {
|
|
176
|
+
target: {
|
|
177
|
+
locationId: this.locationId,
|
|
178
|
+
},
|
|
175
179
|
payload: {
|
|
176
180
|
predicates: this.predicates,
|
|
177
181
|
},
|
|
@@ -11,6 +11,7 @@ export default class FeedCardViewController extends AbstractViewController<Card>
|
|
|
11
11
|
private pendingAddedMessages;
|
|
12
12
|
protected feedVc: FeedViewController;
|
|
13
13
|
protected recipientId?: string;
|
|
14
|
+
private locationId?;
|
|
14
15
|
constructor(options: ViewControllerOptions & FeedCardViewControllerOptions);
|
|
15
16
|
private FeedVc;
|
|
16
17
|
private CardVc;
|
|
@@ -119,6 +119,7 @@ class FeedCardViewController extends heartwood_view_controllers_1.AbstractViewCo
|
|
|
119
119
|
this.recipientId = recipientId;
|
|
120
120
|
this.predicates = predicates;
|
|
121
121
|
this.auth = authenticator;
|
|
122
|
+
this.locationId = locationId;
|
|
122
123
|
const client = await this.connectToApi();
|
|
123
124
|
await client.on('feed.did-update-feed::v2023_03_04', this.handleDidUpdateFeed);
|
|
124
125
|
if (recipientId) {
|
|
@@ -149,6 +150,9 @@ class FeedCardViewController extends heartwood_view_controllers_1.AbstractViewCo
|
|
|
149
150
|
const client = await this.connectToApi();
|
|
150
151
|
try {
|
|
151
152
|
const [{ feed }] = await client.emitAndFlattenResponses('get-feed::v2020_12_25', {
|
|
153
|
+
target: {
|
|
154
|
+
locationId: this.locationId,
|
|
155
|
+
},
|
|
152
156
|
payload: {
|
|
153
157
|
predicates: this.predicates,
|
|
154
158
|
},
|