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

unable to decrypt message on new but verified user session #974

Open
CybotTM opened this issue Sep 24, 2024 · 0 comments
Open

unable to decrypt message on new but verified user session #974

CybotTM opened this issue Sep 24, 2024 · 0 comments

Comments

@CybotTM
Copy link

CybotTM commented Sep 24, 2024

Messages sent by the Hookshot bot are consistently unreadable by some users due to decryption issues, displaying only "Unable to decrypt message." It can take up to two days before affected users can successfully decrypt and read the messages.

This issue occurs exclusively with messages from the Hookshot bot.

Is there a way to keep the bot online for an extended period to ensure successful key exchange?

Steps to reproduce:

  • User: Having a active session.
  • Inviting Hookshot Bot and create web hook.
  • Web Hook: sends messages: All Fine
  • User: (delete session or app and/or) creates a new session and verifies this session
  • Web Hook: sends messages: User always get's "unable to decrypt message"

image

Decrypted event:

{
  "type": "m.room.message",
  "content": {
    "msgtype": "m.bad.encrypted",
    "body": "** Unable to decrypt: DecryptionError: The sender's device has not sent us the keys for this message. **"
  }
}

original event:

{
  "type": "m.room.encrypted",
  "sender": "@_webhookhs_prometheus:netresearch.de",
  "content": {
    "algorithm": "m.megolm.v1.aes-sha2",
    "ciphertext": "Awg...OpAY",
    "device_id": "BOPKPMWUPZ",
    "sender_key": "pXN***N0Q",
    "session_id": "iFN***sOQ"
  },
  "origin_server_ts": 1731919570589,
  "unsigned": {
    "membership": "join",
    "age": 62
  },
  "event_id": "$Ht***-a4A",
  "room_id": "!***:netresearch.de"
}

Fix: drop web hook and recreate a new hook. User is able to read messages again ... until he is required to use/create a new session.

@CybotTM CybotTM changed the title unable to decrypt message unable to decrypt message on new but verified user session Nov 18, 2024
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