Skip to content

PMP does not work in encrypted rooms #366

@poolcritter

Description

@poolcritter

Describe the bug

PMPs are not displayed when present in a decrypted message.

Reproduction

  1. Enter an encrypted room
  2. Send a message with a PMP (e.g. /rawmsg {"msgtype":"m.text","body":"meow!","com.beeper.per_message_profile":{"displayname":"meower"}})
  3. Notice the PMP briefly appear while the message is sending
  4. Notice the fact that the message is no longer using the PMP
  5. RMB→View Source to note that the com.beeper.per_message_profile key is in fact present

Compare this behavior to an unencrypted room.

Expected behavior

The per-message profile should be rendered regardless of whether the room is encrypted.

Platform and versions

- OS: Linux x86_64
- Browser: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
- Sable: v1.9.3-dev (fbe60f1)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug/confirmedThis bug is confirmed to happen & reproducible

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions