Bug 442756 - Respect/follow "archived" status of messages
Summary: Respect/follow "archived" status of messages
Status: CONFIRMED
Alias: None
Product: kdeconnect
Classification: Applications
Component: messaging-application (show other bugs)
Version: 1.4
Platform: Ubuntu Android 9.x
: NOR wishlist
Target Milestone: ---
Assignee: Simon Redman
URL:
Keywords:
: 443657 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-09-21 01:10 UTC by robin
Modified: 2021-10-13 12:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description robin 2021-09-21 01:10:57 UTC
SUMMARY
Kdeconnect should display archived messages in a different folder to unarchived messages, as my Android device does

STEPS TO REPRODUCE
1. Archive a message on my Android device
2. Look at message list in kdeconnect-sms

OBSERVED RESULT
See "archived" message in general message list; there is no message archive


EXPECTED RESULT
Archived messages should only appear in the archived message folder

SOFTWARE/OS VERSIONS
kdeconnect: 1.4
OS: stock Ubuntu 20.04, default repos for KDE/Plasma

ADDITIONAL INFORMATION
Comment 1 Simon Redman 2021-09-21 01:21:28 UTC
As of now, I don't believe this is possible. I believe the archived state is a "facade" created by some messaging apps to hide conversations you don't want to see, but which is fully managed by the messaging app.

The list of columns (which tell you about messages in Android) is here: https://developer.android.com/reference/android/provider/Telephony.BaseMmsColumns

If anyone has documentation for how to support archiving messages, please share it here.
Comment 2 robin 2021-09-21 01:38:36 UTC
This isn't enough to answer the question of "where are the docs for the relevant API?", but when I look in the sqlite database for com.android.messaging, there is a column in the "Conversations" table named "archive_status", which is of type "int".

How to access that through an API? Err, yep, nope.
Comment 3 robin 2021-09-21 01:39:07 UTC
I'm sure it varies for each particular messaging app.
Comment 4 Simon Redman 2021-09-21 01:40:48 UTC
(In reply to robin from comment #3)
> I'm sure it varies for each particular messaging app.

Yes, my thinking as well. Also unless the particular messaging app exposes it in some way, it wouldn't be possible for KDE Connect to access it (without root).

I retain hope that we're both wrong and the archive status is in the "real" database, but I suspect it is not.
Comment 5 Simon Redman 2021-10-13 12:59:37 UTC
*** Bug 443657 has been marked as a duplicate of this bug. ***