提交 963b7dbd 编写于 作者: L lijiarui 提交者: Huan (李卓桓)

add-sys-message-in-friendrequest (#266)

fix #260 
上级 66272041
......@@ -28,6 +28,14 @@ test('parseFriendConfirm()', t => {
'你已添加了李卓桓,现在可以开始聊天了。',
'李卓桓',
],
[
`johnbassserver@gmail.com just added you to his/her contacts list. Send a message to him/her now!`,
`johnbassserver@gmail.com`,
],
[
`johnbassserver@gmail.com刚刚把你添加到通讯录,现在可以开始聊天了。`,
`johnbassserver@gmail.com`,
],
]
let result: boolean
......
......@@ -47,6 +47,8 @@ const regexConfig = {
friendConfirm: [
/^You have added (.+) as your WeChat contact. Start chatting!$/,
/^你已添加了(.+),现在可以开始聊天了。$/,
/^(.+) just added you to his\/her contacts list. Send a message to him\/her now!$/,
/^(.+)刚刚把你添加到通讯录,现在可以开始聊天了。$/,
],
roomJoinInvite: [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册