-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
room-join cannot detect inviteeList when people join in the room with qrcode #651
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please explain your changes.
src/puppet-web/firer.ts
Outdated
@@ -59,9 +59,10 @@ const regexConfig = { | |||
], | |||
|
|||
roomJoinQrcode: [ | |||
/^"(.+)" joined the group chat via the QR Code shared by "?(.+?)".$/, | |||
/^"(.+)" joined the group chat via "?(.+?)"? shared QR Code.$/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you get rid of "?(.+?)"?
, and use undefined
in your code, please explain.
I don't think this change is needed, and also I believe it's not a good choice to do this.
src/puppet-web/firer.ts
Outdated
@@ -194,7 +195,9 @@ async function checkRoomJoin(m: Message): Promise<void> { | |||
let inviteeContactList: Contact[] = [] | |||
|
|||
try { | |||
if (inviter === "You've" || inviter === '你' || inviter === 'your') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to keep this line of code, instead of your new !inviter
.
Because I think to check more words in the message is a good way to make sure you are tracing the right message in Wechat.
Thanks |
#248
room-join cannot detect inviteeList when people join in the room with QR code:
If one contact joins in the room by the QR code shared by the bot, system message as follows:
If one contact joins in the room isn't by the QRcode shared by the bot, system message as follows:
(Pay attention that it has more space before 李佳芮)