You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an encrypted room, the bot can edit just fine if asked to edit the message immediately preceding, but it cannot edit if the message is selected by replying:
It appears that self.client.get_event returns an EncryptedEvent, which the plugin can't handle:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/mautrix/client/syncer.py", line 235, in _catch_errors
await handler(data)
File "/data/plugins/xyz.maubot.sed-v1.1.0.mbp/sed.py", line 192, in message_handler
await self.command_handler(evt)
File "/opt/maubot/maubot/handlers/command.py", line 490, in replacement
await asyncio.gather(combine(self, evt), orig_replacement(self, evt))
File "/opt/maubot/maubot/handlers/command.py", line 480, in replacement
await func(self, evt, val)
File "/data/plugins/xyz.maubot.sed-v1.1.0.mbp/sed.py", line 205, in command_handler
await self._command_handler(evt, match)
File "/data/plugins/xyz.maubot.sed-v1.1.0.mbp/sed.py", line 223, in _command_handler
await self._try_replace_event(evt.event_id, stmt, reply_evt)
File "/data/plugins/xyz.maubot.sed-v1.1.0.mbp/sed.py", line 166, in _try_replace_event
replaced = self._exec(stmt, orig_evt.content.body)
AttributeError: 'EncryptedMegolmEventContent' object has no attribute 'body'
The text was updated successfully, but these errors were encountered:
In an encrypted room, the bot can edit just fine if asked to edit the message immediately preceding, but it cannot edit if the message is selected by replying:
It appears that
self.client.get_event
returns anEncryptedEvent
, which the plugin can't handle:The text was updated successfully, but these errors were encountered: