cabennett85/gittest — Issue #707: Add a replied icon next to messages that have been replied to
Author: cabennett85
Created: 2012-03-02 00:10:32+00:00
State: open

When you reply to a message a green arrow should appear next to the message in your inbox to indicate that you've replied to the message.

The spec should be:

If user A receives a message from user B and A hasn't replied to the message, there should be no icon. If A then replies to the message, a "replied" icon should appear in the inbox next to the message. If B then replies back to A on the same message thread, the "replied" icon should no longer be there since A hasn't replied to the most recent message. In other words, the "replied" icon should appear if and only if the most recent message is from A.

I don't think this requires an extra DB query for each message, because on mailbox we already show all threads and a snippet from the last message in each thread. All we need to do is check if the thread has more than one message and if the last message is sent by the current user.