matrix-appservice-twitter
matrix-appservice-twitter copied to clipboard
Initiating DMs
To do this, we need to react to invites from regular users to bot users. The bot will need to be able to detect when joining a room whether the conversation is a DM (where there is one real user) and a regular timeline invite (a feature proposed in #8).
We need to check the following:
- Check the user is allowed to talk to the other user (and give an error if not)
- Check a DM room doesn't already exist, and close if it does.
TODO:
- [x] Refactoring DM code to it's own handler.
- [ ] React to invitations to bot users.
- [ ] Handle the cases above.