-
Notifications
You must be signed in to change notification settings - Fork 150
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
Decouple invite from the creation of a PM room #1290
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.
I think this is okay, but are we inviting the user?
@@ -167,7 +169,6 @@ export class IrcHandler { | |||
visibility: "private", | |||
// We deliberately set our own power levels below. | |||
// preset: "trusted_private_chat", | |||
invite: [toUserId], |
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.
Hold on a sec, are we actually inviting the user at all now?
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.
ensureMatrixUserJoined
should join the user right after the creation.
matrix-appservice-irc/src/bridge/IrcHandler.ts
Lines 308 to 311 in 7dc74b9
// make sure that the matrix user is (still) in the room | |
try { | |
await this.ensureMatrixUserJoined( | |
pmRoom.getId(), bridgedIrcClient.userId, virtualMatrixUser.getId(), req.log |
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.
Works for me.
Test plan
- Rebuild & Restart bridge with this branch
- As an IRC user, message a Matrix user.
- Use
/nick new-name
to a new username. - Message the Matrix user again.
Peek.2021-04-27.01-34.mp4
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 think this looks great!
Issue: #1254 (comment)
Split off from: #1282 (comment)