element-hq / element-hq/element-web

Cleartext messages in an e2e room fail to generate notifications

Open
#26,722 0 comments 0 reactions 0 assignees View on GitHub
A-Notifications O-Occasional S-Major T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

* Create a clear-text room
* Set the notification settings to "All messages"
* Invite other 2 MXID, making the number of participants 3
* Send some message (at least one for each participant)
* Enable encryption for the room
* 2 of the participants send an E2EE message each
* The third participant sends a clear-text message
* ED will create a dot for the room but no notification counter. It will make an audible ping though

Script used to send clear text message:

```bash
set -o errexit

ROOMID=${1}
MESSSAGE=${2-cleartext}

function usage() {
echo "Set the environmental variables \$MATRIXSERVER and \$ACCESSTOKEN"
echo "USAGE:"
echo " $0 "
echo "The message defaults to 'cleartext'"

}

if [ "$MATRIXSERVER" == "" ] || [ "$ACCESSTOKEN" == "" ] || [ "$ROOMID" == "" ]
then
usage
exit 1
fi

MESSAGEID=$(uuidgen)

curl "https://${MATRIXSERVER}/_matrix/client/r0/rooms/${ROOMID}/send/m.room.message/m${MESSAGEID}" -X PUT -H 'Content-Type: application/json' -H "Authorization: Bearer ${ACCESSTOKEN}" --data-raw "{\"body\": \"${MESSSAGE}\", \"msgtype\": \"m.text\"}"

```

### Outcome

#### What did you expect?

#### What happened instead?

### Operating system

_No response_

### Application version

_No response_

### How did you install the app?

_No response_

### Homeserver

_No response_

### 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.