Merge pull request #1119 from Microsoft/tomlm/fixchatdown

fix chatdown conversationUpdate to set from and recipient properties
This commit is contained in:
Tom Laird-McConnell 2019-05-03 16:31:12 -07:00 коммит произвёл GitHub
Родитель 2519544591 30a7b044be
Коммит 7c59d3795c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 19 добавлений и 9 удалений

Просмотреть файл

@ -159,6 +159,9 @@ function initConversation(args, conversationId, activities) {
args.accounts.user = args.accounts[user.toLowerCase()];
}
}
conversationUpdate.recipient = args.accounts.bot;
conversationUpdate.from = args.accounts.user;
// define matching statements regex for users
args.newMessageRegEx = new RegExp(`^(${args.users.join('|')}|${args.bot}|bot|user)(->(${args.users.join('|')}))??:`, 'i');
activities.push(conversationUpdate);

23
packages/Chatdown/package-lock.json сгенерированный
Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "chatdown",
"version": "1.2.0",
"version": "1.2.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -643,6 +643,11 @@
"package-json": "^5.0.0"
}
},
"lodash": {
"version": "4.17.11",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz",
"integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg=="
},
"lodash._arraycopy": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/lodash._arraycopy/-/lodash._arraycopy-3.0.0.tgz",
@ -1022,20 +1027,22 @@
}
}
},
"request-promise-core": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.2.tgz",
"integrity": "sha512-UHYyq1MO8GsefGEt7EprS8UrXsm1TxEvFUX1IMTuSLU2Rh7fTIdFtl8xD7JiEYiWU2dl+NYAjCTksTehQUxPag==",
"requires": {
"lodash": "^4.17.11"
}
},
"request-promise-native": {
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.7.tgz",
"integrity": "sha512-rIMnbBdgNViL37nZ1b3L/VfPOpSi0TqVDQPAvO6U14lMzOLrt5nilxCQqtDKhZeDiW0/hkCXGoQjhgJd/tCh6w==",
"requires": {
"request-promise-core": "1.1.2",
"stealthy-require": "^1.1.1",
"tough-cookie": "^2.3.3"
},
"dependencies": {
"request-promise-core": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz",
"integrity": "sha1-Pu4AssWqgyOc+wTFcA2jb4HNCLY="
}
}
},
"responselike": {

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "chatdown",
"version": "1.2.1",
"version": "1.2.2",
"description": "Tool for parsing chat files and outputting replayable activities",
"main": "lib/index.js",
"directories": {