Bug 485111 - Notification text overflows after multiple messages
Summary: Notification text overflows after multiple messages
Status: RESOLVED DUPLICATE of bug 475228
Alias: None
Product: NeoChat
Classification: Applications
Component: General (show other bugs)
Version: 24.02.1
Platform: Other macOS
: NOR normal
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-06 03:02 UTC by snow flurry
Modified: 2024-06-07 16:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description snow flurry 2024-04-06 03:02:01 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
The body of new message notifications contain a list of every message posted while NeoChat was in the background since the application was open. This causes the notification to become unreadable within two or three messages on macOS.

STEPS TO REPRODUCE
1. Receive a message while NeoChat is running in the background. A macOS notification should appear.
2. Wait for multiple messages to be sent while NeoChat is in the background.

OBSERVED RESULT

Multiple notifications are received with redundant information. For example, if @alice:example.com sends messages in a given room, the following notifications may appear (from oldest to newest):

"""
alice (@alice:example.com): message one
"""

"""
alice (@alice:example.com): message one
alice (@alice:example.com): message two
"""


"""
alice (@alice:example.com): message one
alice (@alice:example.com): message two ...
"""

Any further messages will look identical.

EXPECTED RESULT

Given the same messages, notifications should look more like:

"""
alice (@alice:example.com): message one
"""

"""
alice (@alice:example.com): message two
"""

"""
alice (@alice:example.com): message three
"""

... and so on.

SOFTWARE/OS VERSIONS
macOS Sonoma 14.4 (using KDE Craft)
KDE Plasma Version: N/A
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION

Possibly a duplicate of #475228 (https://bugs.kde.org/show_bug.cgi?id=475228), although since it makes notifications unusable in macOS, it seems more like a bug than feature request.

To work around this, I modified `NotificationsManager::postNotification` in my source tree to not store a KNotification for each room.
Comment 1 Nate Graham 2024-06-07 16:56:08 UTC

*** This bug has been marked as a duplicate of bug 475228 ***