From 2b67d38ce1731118189d8fd67bca8a603dd0c126 Mon Sep 17 00:00:00 2001 From: Patrick Samson Date: Tue, 14 Aug 2012 23:56:58 +0200 Subject: [PATCH] Fixed issue #8 --- postman/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postman/views.py b/postman/views.py index f135f14..fc66386 100644 --- a/postman/views.py +++ b/postman/views.py @@ -226,9 +226,9 @@ def _view(request, filter, form_class=QuickReplyForm, formatters=(format_subject break else: archived = True - # look for the more recent received message, if any + # look for the more recent received message (and non-deleted to comply with the future perms() control), if any for m in reversed(msgs): - if m.recipient == user: + if m.recipient == user and not m.recipient_deleted_at: received = m break else: -- 2.39.5