In short, sending a message to yourself through the API results in the old bug that it is not marked as read when viewed. The reason is that the $recipients may not be by keyed by the recipient's uid.

The patch does fix this and also contains a test case. Will commit this shortly.

CommentFileSizeAuthor
new_thread_uid_bug.patch2.47 KBberdir

Comments

berdir’s picture

Title: Message send to yourself through API are marked inconsistently as is_new » Message send to yourself through API is marked inconsistently as is_new
Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Patch (to be ported)

Fixed in 6.x-1.x-dev.

berdir’s picture

Status: Patch (to be ported) » Fixed

Fixed

Status: Fixed » Closed (fixed)

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