@microsoft/teamsfx 2.3.1-alpha.ec50e3de8.0 → 2.3.1-alpha.ff81ae4d8.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/dist/index.esm2017.js +1 -1
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +5 -3
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +1 -1
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +5 -3
- package/dist/index.node.cjs.js.map +1 -1
- package/package.json +10 -10
package/dist/index.esm2017.mjs
CHANGED
@@ -1475,7 +1475,7 @@ function createApiClient(apiEndpoint, authProvider) {
|
|
1475
1475
|
baseURL: apiEndpoint,
|
1476
1476
|
});
|
1477
1477
|
instance.interceptors.request.use(async function (config) {
|
1478
|
-
return await authProvider.AddAuthenticationInfo(config);
|
1478
|
+
return (await authProvider.AddAuthenticationInfo(config));
|
1479
1479
|
});
|
1480
1480
|
return instance;
|
1481
1481
|
}
|
@@ -2535,7 +2535,7 @@ class NotificationMiddleware {
|
|
2535
2535
|
return ActivityType.Unknown;
|
2536
2536
|
}
|
2537
2537
|
async tryAddMessagedReference(context) {
|
2538
|
-
var _a, _b, _c, _d;
|
2538
|
+
var _a, _b, _c, _d, _e, _f;
|
2539
2539
|
const reference = TurnContext.getConversationReference(context.activity);
|
2540
2540
|
const conversationType = (_a = reference === null || reference === void 0 ? void 0 : reference.conversation) === null || _a === void 0 ? void 0 : _a.conversationType;
|
2541
2541
|
if (conversationType === "personal" || conversationType === "groupChat") {
|
@@ -2543,7 +2543,9 @@ class NotificationMiddleware {
|
|
2543
2543
|
}
|
2544
2544
|
else if (conversationType === "channel") {
|
2545
2545
|
const teamId = (_d = (_c = (_b = context.activity) === null || _b === void 0 ? void 0 : _b.channelData) === null || _c === void 0 ? void 0 : _c.team) === null || _d === void 0 ? void 0 : _d.id;
|
2546
|
-
|
2546
|
+
const channelId = (_f = (_e = context.activity.channelData) === null || _e === void 0 ? void 0 : _e.channel) === null || _f === void 0 ? void 0 : _f.id;
|
2547
|
+
// `teamId === channelId` means General channel. Ignore messaging in non-General channel.
|
2548
|
+
if (teamId !== undefined && (channelId === undefined || teamId === channelId)) {
|
2547
2549
|
const teamReference = cloneConversation(reference);
|
2548
2550
|
teamReference.conversation.id = teamId;
|
2549
2551
|
await this.conversationReferenceStore.add(getKey(teamReference), teamReference, {
|