https://bugs.kde.org/show_bug.cgi?id=528719
Bug ID: 528719
Summary: SMS: messages with the same timestamp in one
conversation overwrite each other (photo captions
lost)
Classification: Applications
Product: kdeconnect
Version First 23.08.5
Reported In:
Platform: Pop!_OS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: desktop-application
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
DESCRIPTION
The desktop SMS plugin keeps each conversation in a QMap keyed by message date.
When two different messages in a conversation share a date, the second insert
replaces the first, and the first is never shown or returned by
requestConversation again.
This is common in practice: MMS dates are whole seconds, and a photo sent with
a caption is stored on Android as two MMS rows with the same date (text/plain
and image/jpeg). The phone sends both; the desktop keeps one, so the caption
disappears.
STEPS TO REPRODUCE
1. Send or receive a photo with a caption, then open the conversation on the
desktop.
2. When the two rows got the same date, the photo shows without its caption.
It is intermittent for that reason: if the rows straddle a second boundary,
their dates differ and both are kept.
OBSERVED RESULT
In addition to the caption missing from its associated photo on the desktop,
this also results in a disconnect between the number of messages returned
versus the number of messages reported. conversationLoaded reports the number
of known uIDs, which still counts the overwritten messages, so it can exceed
what requestConversation will ever return (49 reported vs 44 returned in one
affected conversation).
EXPECTED RESULT
1. The number of reported and returned messages match .
2. Photos are shown with their captions in the desktop.
SOFTWARE/OS VERSIONS
kdeconnect 23.08.5 (Ubuntu 24.04); the same code is on master.
Phone: Android 17, Google Messages
KDE Connect Android 1.36.0
ADDITIONAL INFORMATION
Suggested fix: key the map by (date, uID), or use a QMultiMap, so same-date
messages are both kept.
--
You are receiving this mail because:
You are watching all bug changes.