Bug 504675

Summary: Notifications for encrypted messages should only fire if the message contains a mention or a notification keyword
Product: [Applications] NeoChat Reporter: Hubert Chathi <hubert>
Component: GeneralAssignee: Tobias Fella <fella>
Status: CONFIRMED ---    
Severity: normal CC: carl, josh
Priority: NOR    
Version First Reported In: 25.04.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Hubert Chathi 2025-05-22 18:58:12 UTC
SUMMARY

For encrypted messages, notifications should only fire if the message mentions the user, or if it contains a notification keyword.  Users shouldn't be notified for every encrypted message.  Instead, NeoChat should decrypt the message and check if the decrypted contents satisfies one of the notification conditions.

STEPS TO REPRODUCE
1. Be in an encrypted room
2. Receive an encrypted message

OBSERVED RESULT
Get a notification, even though there are no mentions or keywords.

EXPECTED RESULT
Only get notified if the message contains mentions or keywords

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION