Display send date for incoming messages

Fixes #597.
This commit is contained in:
Matt Enright 2014-02-26 22:15:25 -05:00 committed by Moxie Marlinspike
parent 4caff2e511
commit 7ceaf59bcc

View File

@ -278,9 +278,7 @@ public class ConversationItem extends LinearLayout {
} else if (messageRecord.isPending()) { } else if (messageRecord.isPending()) {
dateText.setText(" ··· "); dateText.setText(" ··· ");
} else { } else {
final long timestamp = (messageRecord.isOutgoing() ? final long timestamp = messageRecord.getDateSent();
messageRecord.getDateSent() :
messageRecord.getDateReceived());
dateText.setText(DateUtils.getBetterRelativeTimeSpanString(getContext(), timestamp)); dateText.setText(DateUtils.getBetterRelativeTimeSpanString(getContext(), timestamp));
} }