@sprucelabs/spruce-feed-view-controllers 1.1.9 → 1.2.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.
|
@@ -129,7 +129,7 @@ class FeedCardViewController extends AbstractViewController {
|
|
|
129
129
|
}
|
|
130
130
|
load(options) {
|
|
131
131
|
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
-
const { predicates, authenticator, recipientId } = assertOptions(options, ['predicates', 'authenticator'], `You have to pass the search predicates and the authenticator to load the feed. They are in the form of { source: {...}, target: {...} }[]. If you wanna find anything to AND from a person, you gotta pass personId to both source AND target.`);
|
|
132
|
+
const { predicates, authenticator, recipientId, locationId } = assertOptions(options, ['predicates', 'authenticator'], `You have to pass the search predicates and the authenticator to load the feed. They are in the form of { source: {...}, target: {...} }[]. If you wanna find anything to AND from a person, you gotta pass personId to both source AND target.`);
|
|
133
133
|
this.recipientId = recipientId;
|
|
134
134
|
this.predicates = predicates;
|
|
135
135
|
this.auth = authenticator;
|
|
@@ -139,9 +139,11 @@ class FeedCardViewController extends AbstractViewController {
|
|
|
139
139
|
yield Promise.all([
|
|
140
140
|
this.subscribe(client, {
|
|
141
141
|
toPersonId: recipientId,
|
|
142
|
+
locationId,
|
|
142
143
|
}),
|
|
143
144
|
this.subscribe(client, {
|
|
144
145
|
fromPersonId: recipientId,
|
|
146
|
+
locationId,
|
|
145
147
|
}),
|
|
146
148
|
]);
|
|
147
149
|
}
|
|
@@ -115,7 +115,7 @@ class FeedCardViewController extends heartwood_view_controllers_1.AbstractViewCo
|
|
|
115
115
|
return this.isLoaded;
|
|
116
116
|
}
|
|
117
117
|
async load(options) {
|
|
118
|
-
const { predicates, authenticator, recipientId } = (0, schema_1.assertOptions)(options, ['predicates', 'authenticator'], `You have to pass the search predicates and the authenticator to load the feed. They are in the form of { source: {...}, target: {...} }[]. If you wanna find anything to AND from a person, you gotta pass personId to both source AND target.`);
|
|
118
|
+
const { predicates, authenticator, recipientId, locationId } = (0, schema_1.assertOptions)(options, ['predicates', 'authenticator'], `You have to pass the search predicates and the authenticator to load the feed. They are in the form of { source: {...}, target: {...} }[]. If you wanna find anything to AND from a person, you gotta pass personId to both source AND target.`);
|
|
119
119
|
this.recipientId = recipientId;
|
|
120
120
|
this.predicates = predicates;
|
|
121
121
|
this.auth = authenticator;
|
|
@@ -125,9 +125,11 @@ class FeedCardViewController extends heartwood_view_controllers_1.AbstractViewCo
|
|
|
125
125
|
await Promise.all([
|
|
126
126
|
this.subscribe(client, {
|
|
127
127
|
toPersonId: recipientId,
|
|
128
|
+
locationId,
|
|
128
129
|
}),
|
|
129
130
|
this.subscribe(client, {
|
|
130
131
|
fromPersonId: recipientId,
|
|
132
|
+
locationId,
|
|
131
133
|
}),
|
|
132
134
|
]);
|
|
133
135
|
}
|