Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleartext messages in an e2e room fail to generate notifications #26722

Open
dbkr opened this issue Dec 11, 2023 · 0 comments
Open

Cleartext messages in an e2e room fail to generate notifications #26722

dbkr opened this issue Dec 11, 2023 · 0 comments
Labels
A-Notifications O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect

Comments

@dbkr
Copy link
Member

dbkr commented Dec 11, 2023

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:

set -o errexit

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

function usage() {
    echo "Set the environmental variables \$MATRIXSERVER and \$ACCESSTOKEN"
    echo "USAGE:"
    echo "    $0 <roomid> <optional message>"
    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

@dbkr dbkr added the T-Defect label Dec 11, 2023
@MidhunSureshR MidhunSureshR added S-Major Severely degrades major functionality or product features, with no satisfactory workaround A-Notifications O-Occasional Affects or can be seen by some users regularly or most users rarely labels Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Notifications O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect
Projects
None yet
Development

No branches or pull requests

2 participants