pm_index should have column to indicate read status

nbz - July 21, 2008 - 21:29
Project:Privatemsg
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

This is vital and probably on your todo list, but it is best to document it somewhere.

There needs to be a way to tell whether a message has been read or not. Probably can be done via a column in pm_index with a boolean value.

#1

litwol - July 21, 2008 - 21:31
Priority:normal» critical
Assigned to:Anonymous» litwol
Status:active» patch (code needs work)

very good :)

#2

litwol - July 27, 2008 - 01:42
Version:6.x-1.x-dev» HEAD
Priority:critical» normal
Assigned to:litwol» Anonymous
Status:patch (code needs work)» fixed

This should do the trick: http://drupal.org/cvs?commit=129975

#3

nbz - July 27, 2008 - 01:52

Expanding on this idea, is there a chance that in the future at some point we will want drafts? If so, maybe rename the field to status, have 0 = draft, 1 = read, 2 = unread.

Or totally ignore that idea as crack.

#4

litwol - July 27, 2008 - 01:57

i did consider having it as 'status' but then i thought that it may become too confusing if one field means many things.
= 1 : new
= 0 : read
= 2 : draft
= 3 : marked for deletion
= 4 : locked (ie cant delete or anything)
= 5 : archived
etc
etc
etc.

in the long run this becomes too confusing. for now i decided to have just one field for very specific purpose. will expand on it as need arise.

#5

Anonymous (not verified) - August 10, 2008 - 02:02
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.