Bug 468326

Summary: SMS listing stopped working since 1.23.0
Product: [Applications] kdeconnect Reporter: Martin Pecka <peci1>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED FIXED    
Severity: major CC: andrew.g.r.holmes, inb-bugzilla-1e1cff
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Android   
OS: Android 12.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Martin Pecka 2023-04-09 14:25:42 UTC
STEPS TO REPRODUCE
1.  Use GSConnect on Ubuntu 18.04
2. Use current version of Android app (1.23.2)
3. Try to open up the SMS messages window

OBSERVED RESULT
Nothing happens. When debugging, I've found there was an exception from GSConnect code that was parsing timestamps. It seems some timestamps sent from Android are now 1000x larger than they should be. Okay, I worked around this issue to not stand in the way. Now, I can see the messaging window, but only with messages up to 19 March 2023 - which is the day when update to 1.23 came. After that, nothing. It doesn't help to kill daemon.js or Alt+F2/r. No new messages are displayed. I can send messages, but they stay greyed out forever (altough they are actually sent).

Downgrading to 1.22.1 from https://www.apkmirror.com/apk/kde-community/kde-connect/kde-connect-1-22-1-release/ fixes the issues for me (both message loading and wrong timestamps).

SOFTWARE/OS VERSIONS
Linux: Ubuntu 18.04 with GSConnect v28. This version hasn't been updated in ages, so it definitely is not a newly introduced bug in GSConnect.

A side question - after resetting the app many times and pairing/unpairing, the SMS app only shows me the last message with each contact. Is there a way to convince it to load more messages?
Comment 1 Martin Pecka 2023-04-09 14:27:40 UTC
Looking into the changelog, could this be the culprit? https://invent.kde.org/network/kdeconnect-android/-/merge_requests/309 .
Comment 2 Ben Bonacci 2023-04-14 11:53:40 UTC
I can't reproduce this on version 1.24.0, so I'm assuming the problem was fixed recently. Does using this version of the KDE Connect client also cause the behavior?
There is a commit that appears to fix SMS syncing for version 1.24.1, although I'm not sure if it's related to this problem or not. https://invent.kde.org/network/kdeconnect-android/-/commit/e07fe54d5c492935f78dd7a9b8835e2efcb754ab
Comment 3 Albert Vaca Cintora 2023-04-15 12:49:11 UTC
This should be fixed in 1.24.1, however if you got the app from the Play Store the 1.24.1 update is being rejected by Google and we are fighting that at the moment. Please reopen if 1.24.1 doesn't fix it once it's out (or if you install it from a different store :)
Comment 4 Colin J Thomson 2023-04-18 18:12:14 UTC
I just installed 1.24.1 from F-Droid and it fixes it for me.
Comment 5 Martin Pecka 2023-04-28 22:03:03 UTC
I also confirm updating Android app to 1.24.1 from Google play fixed the issue for me. Thanks!