From 16e93f6356d3a8626b0b2df9f771c7595af6944f Mon Sep 17 00:00:00 2001 From: Ryan ZHAO Date: Mon, 24 Aug 2020 10:45:33 +1000 Subject: [PATCH] update info message when reset the session --- .../thoughtcrime/securesms/database/model/SmsMessageRecord.java | 2 +- src/org/thoughtcrime/securesms/database/model/ThreadRecord.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/database/model/SmsMessageRecord.java b/src/org/thoughtcrime/securesms/database/model/SmsMessageRecord.java index 231696af07..df7bce7ef3 100644 --- a/src/org/thoughtcrime/securesms/database/model/SmsMessageRecord.java +++ b/src/org/thoughtcrime/securesms/database/model/SmsMessageRecord.java @@ -82,7 +82,7 @@ public class SmsMessageRecord extends MessageRecord { } else if (SmsDatabase.Types.isNoRemoteSessionType(type)) { return emphasisAdded(context.getString(R.string.MessageDisplayHelper_message_encrypted_for_non_existing_session)); } else if (isLokiSessionRestoreSent()) { - return emphasisAdded(context.getString(R.string.MessageRecord_session_restore_sent, recipient.toShortString())); + return emphasisAdded(context.getString(R.string.SmsMessageRecord_secure_session_reset)); } else if (isEndSession() && isOutgoing()) { return emphasisAdded(context.getString(R.string.SmsMessageRecord_secure_session_reset)); } else if (isEndSession()) { diff --git a/src/org/thoughtcrime/securesms/database/model/ThreadRecord.java b/src/org/thoughtcrime/securesms/database/model/ThreadRecord.java index 1cf2c6d328..c0eb4ca611 100644 --- a/src/org/thoughtcrime/securesms/database/model/ThreadRecord.java +++ b/src/org/thoughtcrime/securesms/database/model/ThreadRecord.java @@ -83,7 +83,7 @@ public class ThreadRecord extends DisplayRecord { } else if (SmsDatabase.Types.isNoRemoteSessionType(type)) { return emphasisAdded(context.getString(R.string.MessageDisplayHelper_message_encrypted_for_non_existing_session)); } else if (isLokiSessionRestoreSent()) { - return emphasisAdded(context.getString(R.string.MessageRecord_session_restore_sent, recipient.toShortString())); + return emphasisAdded(context.getString(R.string.SmsMessageRecord_secure_session_reset)); } else if (SmsDatabase.Types.isEndSessionType(type)) { return emphasisAdded(context.getString(R.string.ThreadRecord_secure_session_reset)); } else if (MmsSmsColumns.Types.isLegacyType(type)) {