From: Patrick Samson Date: Tue, 14 Aug 2012 21:56:58 +0000 (+0200) Subject: Fixed issue #8 X-Git-Tag: 2.0.0~4 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=2b67d38ce1731118189d8fd67bca8a603dd0c126;p=django-postman.git Fixed issue #8 --- 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: