Skip to content
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

Messages sent by the bot are stored as writeTemp #50

Open
XayOn opened this issue Nov 1, 2021 · 0 comments
Open

Messages sent by the bot are stored as writeTemp #50

XayOn opened this issue Nov 1, 2021 · 0 comments

Comments

@XayOn
Copy link

XayOn commented Nov 1, 2021

Apparently, upon sending mails, everything outputted by the client will be sent too, as it has been received as events and stored on the database as message body / subject. I've no experience on GO/gomatrix, but I think you should check evt.Sender to discard messages sent by the bot itself.

if evt.Content.AsMessage().MsgType == event.MsgText {

asi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant