IBBoard / cawbird

A fork of the Corebird GTK Twitter client that continues to work with Twitter
https://ibboard.co.uk/cawbird/
GNU General Public License v3.0
309 stars 37 forks source link

Can't delete messages in my inbox #494

Open ProfP30 opened 1 year ago

ProfP30 commented 1 year ago

Describe the bug Received some spam messages via direct messages recently. Even though I have reported the messages as spam or have deleted the content, I can't remove the mails from my inbox If I go into the thread of the direct message by clicking on it, I see an empty thread just stating "DMPage" and twitter account name.

To Reproduce Try to remove messages from the inbox

  1. Go to the direct messages overview
  2. Try to remove a whole conversation

Expected behavior A possibility to remove a whole conversation from the overview and thread details. Give a possibility like a context-menu (when right-clicking on a message in the direct messages overview) or hotkey etc.

System details:

Running G_MESSAGES_DEBUG=cawbird cawbird can give useful debug output.

See trace details of running G_MESSAGES_DEBUG=cawbird cawbird here: https://pastebin.com/UPJTKmKg

IBBoard commented 1 year ago

Cawbird does support deleting DMs. We need a better UI, but I did it as a minimal-change approach because Corebird didn't support deletion. Within a conversation, you need to click on the avatar and then you can delete posts with the button at the bottom of the window.

I'm not clear how this isn't working, though. I can see the "Forbidden" messages in the log, but don't know what they're from (because it appears to be showing a user, but you said it's a DM problem).

Has Cawbird downloaded the DMs, and then you've deleted them on Twitter and now you can't delete them locally? Or is it something else?

If you could provide screenshots and notes about what you expect to see then it might be clearer.

ProfP30 commented 1 year ago

1.) I have spam mails in my inbox, which I have reported; screenshot: https://ibb.co/DWtJbGb 2.) When I click into the thread, I see no avatar anymore, because it was removed by Twitter or maybe I have already deleted the thread, but still it appears forever in the inbox: https://ibb.co/wWM2pqz

ProfP30 commented 1 year ago

Maybe it would be sufficient to clear my cawbird-cache. Can you please point me to the right directory/files? I have not been able to find it.

IBBoard commented 1 year ago

It won't be the cache. It'll be in the database. That's at ~/.config/cawbird/accounts/<account-id>.sqlite but I'd recommend against editing it unless you know what you're doing, because Twitter only gives us recent DMs (so breaking the file would lose your DM history) and it holds various other data like your authentication tokens and filters.

IBBoard commented 1 year ago

I've just recreated this by deleting all of my tweets to a company. The thread still exists in the DM thread list, but the page is blank. I should be able to do something about cleaning that up.