Added folder to select statement & changed received to receivedTime #240
No reviewers
Labels
No Label
bug
build
dependencies
developers
documentation
duplicate
enhancement
formatting
invalid
legal
mobile
obsolete
packaging
performance
protocol
question
refactoring
regression
security
test
translation
usability
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/PyBitmessage-2024-12-05#240
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The folder column is currently used to determine whether the message is trashed or not. Trashed messages have the folder column set to 'trash', while regular inbox messages are set to 'inbox'.
What about sent messages though? It looks like the same issue happens with sent items. Instead of having both a sent table, and a sent column/value, there should be standardization. If a message is in your Inbox, it should be represented as a row in the Inbox table. If that message gets deleted, then the row should be deleted from the Inbox table and moved to the "trash" table. Otherwise to get the true representation of an inbox, you need to set "FROM='inbox' WHERE folder='inbox'" in any queries used.
@acejam The inbox and sent tables have different fields. Also, if folders are ever implemented in this UI, having this folder field would be necessary: we can't have a different table for ever folder the user might create. Queries like the one used here could be changed to something like:
@DivineOmega @Atheros1 I see what you mean now, thanks for the explanations. I have added another method (getSentMessagesByAddress) and have included the necessary folder selection within the DB query.
Thank you acejam