element-hq / element-hq/element-android

Messages with `/spoiler` tag show in plaintext in the notification

Open
#3,477 3 comments 3 reactions 0 assignees View on GitHub
A-Notifications A-Spoiler Z-GetYourUpdates
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

#### Describe the bug
Messages sent with `/spoiler` text show in plaintext in notification. Text that is specifically sent with the `/spoiler` flag is sensitive enough to be hidden in the chat and should also be hidden in the notification.

#### To Reproduce
Steps to reproduce the behavior:
1. Be sent message beginning with `/spoiler` tag
2. Open notifications or view from lock screen
3. Read the plaintext and ponder why it isn't hidden

#### Expected behavior
Text that is sensitive enough to be hidden within the chat should also be hidden in the notification.

#### Screenshots
![RFNkreYM0Q](https://user-images.githubusercontent.com/21106956/121361057-78587200-c924-11eb-95d7-d90d26ce0f57.jpg)

#### Smartphone (please complete the following information):
- Device: OnePlus 6T
- OS: LineageOS 18.1

#### Additional context
- 1.1.8 - F-Droid
- matrix.org

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.