Skip to content

Commit 4746da6

Browse files
committed
Fix Node SDK + Teams. This does not work because the last bit of the serviceUrl is being stripped in the Node SDK. Also the new behavior is aligned with the C# SDK.
1 parent 05aeafd commit 4746da6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Node/core/src/bots/ChatConnector.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -640,16 +640,6 @@ export class ChatConnector implements IConnector, IBotStorage {
640640
msg.address = address;
641641
msg.source = address.channelId;
642642

643-
// Patch serviceUrl
644-
if (address.serviceUrl) {
645-
try {
646-
var u = url.parse(address.serviceUrl);
647-
address.serviceUrl = u.protocol + '//' + u.host;
648-
} catch (e) {
649-
console.error("ChatConnector error parsing '" + address.serviceUrl + "': " + e.toString());
650-
}
651-
}
652-
653643
// Check for facebook quick replies
654644
if (msg.source == 'facebook' && msg.sourceEvent && msg.sourceEvent.message && msg.sourceEvent.message.quick_reply) {
655645
msg.text = msg.sourceEvent.message.quick_reply.payload;

0 commit comments

Comments
 (0)