element-hq / element-hq/element-android

Certain messages cause the app to crash

Open
#8,859 0 comments 0 reactions 0 assignees View on GitHub
T-Defect
Dominant language
Kotlin
Stars
3.7k
Forks
917
Avg merge
8d 20h
Merged PRs (30d)
1

Description

### Steps to reproduce

Receive spam message

```
{
"content": {
"body": "🆓 CLAIM $SUPRA\n\n New 56th mission from the Supra Oracles project ☄️\n\n🟣 Supra Oracles is a multi-chain oracle that allows you to quickly convert data between Web2 and Web3. Raised $47 million from Coinbase Ventures, Animoca Brands, Huobi, Hashed, etc. on ➡️ Twitter 230k+ subscribers.\n\n📖 What we do:\n\n1️⃣ Take a look at their website\n\n✅ claim-supra.xyz\n\n2️⃣ Pay for a subscription ($5)\n3️⃣ We are active on the platform",
"external_url": "https://t.me/wownero/218097",
"fi.mau.telegram.source": {
"chat_id": 1353770282,
"id": 218097,
"peer_type": "channel",
"space": 1353770282
},
"format": "org.matrix.custom.html",
"formatted_body": "\"🆓\" CLAIM $SUPRA

New 56th mission from the Supra Oracles project ☄️

\"🟣\" Supra Oracles is a multi-chain oracle that allows you to quickly convert data between Web2 and Web3. Raised $47 million from Coinbase Ventures, Animoca Brands, Huobi, Hashed, etc. on \"➡️\" Twitter 230k+ subscribers.

\"📖\" What we do:

\"1️⃣\" Take a look at their website

\"✅\" claim-supra.xyz

\"2️⃣\" Pay for a subscription ($5)
\"3️⃣\" We are active on the platform",
"msgtype": "m.text"
},
"origin_server_ts": 1720057892000,
"sender": "@telegram_1514471020:t2bot.io",
"type": "m.room.message",
"unsigned": {},
"event_id": "$abkeLvU_CHdCjD3h6PyaSjfVSCyaEC0cPiSgfGh4uQE",
"room_id": "!mzmDQgjgqNJMGyTtDm:wowne.ro"
}
```

### Outcome

#### What did you expect?
App doesnt crash
#### What happened instead?
App crashes

### Your phone model

Reproducible by all android users

### Operating system version

Android 10+

### Application version and app store

1.6.16 [40106162] (F-e3a87815)

### Homeserver

monero.social, xmr.mx, matrix.org

### Will you send logs?

No

### Are you willing to provide a PR?

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.