[buddypress-trac] [BuddyPress] #911: Deleted/Replied to message fix
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Wed Aug 5 18:24:44 UTC 2009
#911: Deleted/Replied to message fix
----------------------------+-----------------------------------------------
Reporter: johnjamesjacoby | Owner: johnjamesjacoby
Type: defect | Status: new
Priority: critical | Milestone: 1.0.4
Keywords: has-patch |
----------------------------+-----------------------------------------------
Patch to fix situation where a user deletes a message, and someone in the
tread replies to it. Previously the message/thread was never unmarked as
deleted. This patch fixes it quite easily.
Situation
----------------------
Burt = user_id 3
John = user_id 2
Andy = user_id 1
Before
-----------------------
1. I message Andy and Burt.
2. I delete message in my sent box. (user_id = 2; is_deleted = 1)
3. Burt reads the message, and deletes (user_id = 3; is_deleted = 1)
3. Andy messages us back.
4. Message never shows up in my inbox. is_deleted still = 1
5. Message never shows up in Burt's inbox. is_deleted still = 1
After
-----------------------
1. I message Andy.
2. I delete message in my sent box. (user_id = 2; is_deleted = 1)
3. Burt reads the message, and deletes (user_id = 3; is_deleted = 1)
4. Andy messages us back. (user_id = 3,2; is_deleted = 0)
5. Burt and I both receive notifications of new messages and all is well.
Patch attached.
--
Ticket URL: <http://trac.buddypress.org/ticket/911>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list