show timestamp for missed incoming calls. fixes #3692

This commit is contained in:
Daniel Gultsch 2020-05-03 18:36:15 +02:00
parent 3c3f5d8e6f
commit 476fb23656

View file

@ -704,8 +704,10 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie
if (received) { if (received) {
if (duration > 0) { if (duration > 0) {
viewHolder.status_message.setText(activity.getString(R.string.incoming_call_duration, TimeframeUtils.resolve(activity, duration))); viewHolder.status_message.setText(activity.getString(R.string.incoming_call_duration, TimeframeUtils.resolve(activity, duration)));
} else { } else if (rtpSessionStatus.successful) {
viewHolder.status_message.setText(R.string.incoming_call); viewHolder.status_message.setText(R.string.incoming_call);
} else {
viewHolder.status_message.setText(activity.getString(R.string.incoming_call_duration, UIHelper.readableTimeDifferenceFull(activity, message.getTimeSent())));
} }
} else { } else {
if (duration > 0) { if (duration > 0) {