Skip to content

Commit

Permalink
Fix #140: show actual send timestamp also in message details
Browse files Browse the repository at this point in the history
Signed-off-by: Daniele Ricci <[email protected]>
  • Loading branch information
daniele-athome committed Mar 17, 2014
1 parent a37c8d0 commit d48e634
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/kontalk/util/MessageUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,8 @@ else if ((securityFlags & Coder.SECURITY_ERROR_PUBLIC_KEY_UNAVAILABLE) != 0) {
case Messages.STATUS_RECEIVED:
case Messages.STATUS_NOTDELIVERED:
resId = R.string.sent_label;
timestamp = msg.getTimestamp();
long serverTime = msg.getServerTimestamp();
timestamp = serverTime > 0 ? serverTime : msg.getTimestamp();
break;
default:
resId = -1;
Expand Down

0 comments on commit d48e634

Please sign in to comment.