diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-14 18:34:39 +0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-14 18:34:39 +0200 |
commit | 6d08b8e65d2c1679d4b489ac196116847f91b3a7 (patch) | |
tree | e40f0a70a69d6c1582d9054a46d2e279ecdbb6fb /service/pixelated | |
parent | dc991ddffc287263c2b4fd218d43e2f501b181dc (diff) |
Fixing mail index for mark as read unread
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/user_agent.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/user_agent.py b/service/pixelated/user_agent.py index d6920dc6..c20a29d8 100644 --- a/service/pixelated/user_agent.py +++ b/service/pixelated/user_agent.py @@ -157,14 +157,14 @@ def mail_tags(mail_id): @app.route('/mail/<mail_id>/read', methods=['POST']) def mark_mail_as_read(mail_id): - mail_service.mark_as_read(mail_id) + mail = mail_service.mark_as_read(mail_id) search_engine.index_mail(mail) return "" @app.route('/mail/<mail_id>/unread', methods=['POST']) def mark_mail_as_unread(mail_id): - mail_service.mark_as_unread(mail_id) + mail = mail_service.mark_as_unread(mail_id) search_engine.index_mail(mail) return "" |