@microsoft/teamsfx 2.3.1-alpha.ec50e3de8.0 → 2.3.1-alpha.f688c0131.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.node.cjs.js
CHANGED
@@ -1565,7 +1565,7 @@ function createApiClient(apiEndpoint, authProvider) {
|
|
1565
1565
|
});
|
1566
1566
|
instance.interceptors.request.use(function (config) {
|
1567
1567
|
return __awaiter(this, void 0, void 0, function* () {
|
1568
|
-
return yield authProvider.AddAuthenticationInfo(config);
|
1568
|
+
return (yield authProvider.AddAuthenticationInfo(config));
|
1569
1569
|
});
|
1570
1570
|
});
|
1571
1571
|
return instance;
|
@@ -2642,7 +2642,7 @@ class NotificationMiddleware {
|
|
2642
2642
|
return ActivityType.Unknown;
|
2643
2643
|
}
|
2644
2644
|
tryAddMessagedReference(context) {
|
2645
|
-
var _a, _b, _c, _d;
|
2645
|
+
var _a, _b, _c, _d, _e, _f;
|
2646
2646
|
return __awaiter(this, void 0, void 0, function* () {
|
2647
2647
|
const reference = botbuilder.TurnContext.getConversationReference(context.activity);
|
2648
2648
|
const conversationType = (_a = reference === null || reference === void 0 ? void 0 : reference.conversation) === null || _a === void 0 ? void 0 : _a.conversationType;
|
@@ -2651,7 +2651,9 @@ class NotificationMiddleware {
|
|
2651
2651
|
}
|
2652
2652
|
else if (conversationType === "channel") {
|
2653
2653
|
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;
|
2654
|
-
|
2654
|
+
const channelId = (_f = (_e = context.activity.channelData) === null || _e === void 0 ? void 0 : _e.channel) === null || _f === void 0 ? void 0 : _f.id;
|
2655
|
+
// `teamId === channelId` means General channel. Ignore messaging in non-General channel.
|
2656
|
+
if (teamId !== undefined && (channelId === undefined || teamId === channelId)) {
|
2655
2657
|
const teamReference = cloneConversation(reference);
|
2656
2658
|
teamReference.conversation.id = teamId;
|
2657
2659
|
yield this.conversationReferenceStore.add(getKey(teamReference), teamReference, {
|