mjolnir icon indicating copy to clipboard operation
mjolnir copied to clipboard

Abuse report buttons do not work (in an encrypted moderation room?)

Open heftig opened this issue 4 years ago • 8 comments

Describe the bug The buttons on the abuse reports do nothing.

To Reproduce

  1. Report an event.
  2. Click on any of the report's buttons in the management room.

Expected behavior Mjolnir reacts to the click.

Additional context

  • Mjolnir is set up through Pantalaimon and the management room is encrypted.
  • I've tried the buttons using Element Web and Element Android.
  • Element Android tells me Mjolnir's reaction events are encrypted, while my own (from both Web and Android) are unencrypted.

heftig avatar Nov 18 '21 20:11 heftig

maybe this is related to the encrypted managment room.

here it works fine. the different is my management room is unencrypted.

screenshot

i use also mjolnir is installed via the "Build it"-Method and works also via pantalaimon.

OS: Debian 11 nodejs v: 14.18.1 yarn v: 1.22.15

cremesk avatar Nov 18 '21 21:11 cremesk

@heftig Can you confirm that you're using Mjölnir 1.2.1? There was a snafu this week and I initially tagged/released an image that didn't contain all the patches.

Yoric avatar Nov 19 '21 07:11 Yoric

Yes, sorry. Mjolnir 1.2.1, installed via git.

heftig avatar Nov 19 '21 08:11 heftig

One thing that is going to make testing/fixing this complicated is that the test suite doesn't support pantalaimon yet. I'll check how hard it would be to add support.

Yoric avatar Nov 19 '21 16:11 Yoric

In the meantime, @heftig, do you see any errors show up in the logs?

Yoric avatar Nov 22 '21 09:11 Yoric

No, I already looked. There's no reaction from Mjolnir, not even logs.

heftig avatar Nov 22 '21 10:11 heftig

No, I already looked. There's no reaction from Mjolnir, not even logs.

well it DOES receive the m.reaction event but it seems to be ignored when coming from an encrypted management room.

similar setup on my end, except for a docker build via the currently supplied dockerfile in the main-branch. can confirm this behavior as described.

TildeSlashC0re avatar Jan 29 '22 22:01 TildeSlashC0re

I tried a report-to-moderators via msc3215, which was delivered successfully, but the bot still does not react to using any of the reactions on the report message.

heftig avatar Jan 26 '23 17:01 heftig