element-hq / element-hq/element-android

Unable to read history messages in encrypted group room

Open
#5,482 1 comment 1 reaction 0 assignees View on GitHub
A-E2EE T-Defect Team: Crypto
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

### Steps to reproduce

Assume you are A
1. A create a new private space
2. A invite some user B into this space
3. A create a new room in this space: with default settings
* Room name: `test-history`
* Room access => space members only
* Room seetings:
* enable encryptiong: on
5. A say `wait for B` in the chat room
6. B find `test-history` room in the `Explore rooms` page
7. B join the room
8. B can not decrypt A's last message, when dev mode is on, B get `**Unable to decrypt: KEYS_WITHHELD**`
* In A's `Advanced settings> Dev Tools => Key Requests` page
* in `AUDIT TRAIL`, we can see one `m.rom_key_request` from B
* in `INCOMING`, we can see the above request, state is `UNABLE_TO_PROCESS`

## more info
* A and B have verified each other
* I have tested this in several different Android devices and got same results.
* In element-web, we get `You can't see earlier messages.`

### Outcome

#### What did you expect?
At step 8, B can decrypt A's message: `wait for B`
#### What happened instead?
At step 8, B can not decrypt A's message, get debug message: `Unable to decrypt: KEYS_WITHHELD`

### Your phone model

google pixel 4

### Operating system version

Android 12

### Application version and app store

Element:1.4.2, Matrix SDK Version:1.4.2, olm version:3.2.10

### Homeserver

Synapse 1.52.0

### Will you send logs?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.