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

Reply based translate command broken in encrypted room #8

Open
jaywink opened this issue Feb 25, 2021 · 0 comments
Open

Reply based translate command broken in encrypted room #8

jaywink opened this issue Feb 25, 2021 · 0 comments

Comments

@jaywink
Copy link

jaywink commented Feb 25, 2021

A normal !tr fi Hello this is English for example works fine in an encrypted room. But replying to for example Hello this is English with !tr fi fails with the following:

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/mautrix/client/syncer.py", line 200, in _catch_errors
    await handler(data)
  File "/opt/maubot/maubot/handlers/command.py", line 119, in __call__
    return await self.__mb_func__(self.__bound_instance__, evt, **call_args)
  File "/data/plugins/xyz.maubot.translate-v0.1.0.mbp/translate/bot.py", line 105, in command_handler
    text = reply_evt.content.body
AttributeError: 'EncryptedMegolmEventContent' object has no attribute 'body'

In a non-encrypted room this works fine.

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