diff --git a/res/values/strings.xml b/res/values/strings.xml
index d3f9d849a..9e3997e09 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -283,7 +283,11 @@
Received message with unknown identity key. Click to process and display.
Received updated but unknown identity information. Tap to validate identity.
-
+ Secure session ended.
+
+
+ Left the group...
+ Secure session ended.
You do not have an identity key.
@@ -758,6 +762,7 @@
Verified
+
diff --git a/src/org/thoughtcrime/securesms/database/model/SmsMessageRecord.java b/src/org/thoughtcrime/securesms/database/model/SmsMessageRecord.java
index b598000f3..2bf7f752d 100644
--- a/src/org/thoughtcrime/securesms/database/model/SmsMessageRecord.java
+++ b/src/org/thoughtcrime/securesms/database/model/SmsMessageRecord.java
@@ -80,8 +80,7 @@ public class SmsMessageRecord extends MessageRecord {
} else if (!getBody().isPlaintext()) {
return emphasisAdded(context.getString(R.string.MessageNotifier_encrypted_message));
} else if (SmsDatabase.Types.isEndSessionType(type)) {
- // TODO jake is going to fix this up
- return new SpannableString("Session closed!");
+ return emphasisAdded(context.getString(R.string.SmsMessageRecord_secure_session_ended));
} else if (isOutgoing() && Tag.isTagged(getBody().getBody())) {
return new SpannableString(Tag.stripTag(getBody().getBody()));
} else {
diff --git a/src/org/thoughtcrime/securesms/database/model/ThreadRecord.java b/src/org/thoughtcrime/securesms/database/model/ThreadRecord.java
index c67e2cde2..7aec770a3 100644
--- a/src/org/thoughtcrime/securesms/database/model/ThreadRecord.java
+++ b/src/org/thoughtcrime/securesms/database/model/ThreadRecord.java
@@ -53,13 +53,12 @@ public class ThreadRecord extends DisplayRecord {
@Override
public SpannableString getDisplayBody() {
- // TODO jake is going to fill these in
if (SmsDatabase.Types.isDecryptInProgressType(type)) {
return emphasisAdded(context.getString(R.string.MessageDisplayHelper_decrypting_please_wait));
} else if (isGroupUpdate()) {
return emphasisAdded(GroupUtil.getDescription(getBody().getBody()));
} else if (isGroupQuit()) {
- return emphasisAdded("Someone left the group.");
+ return emphasisAdded(context.getString(R.string.ThreadRecord_left_the_group));
} else if (isKeyExchange()) {
return emphasisAdded(context.getString(R.string.ConversationListItem_key_exchange_message));
} else if (SmsDatabase.Types.isFailedDecryptType(type)) {
@@ -69,8 +68,7 @@ public class ThreadRecord extends DisplayRecord {
} else if (!getBody().isPlaintext()) {
return emphasisAdded(context.getString(R.string.MessageNotifier_encrypted_message));
} else if (SmsDatabase.Types.isEndSessionType(type)) {
- // TODO jake is going to fix this up
- return emphasisAdded("Session closed!");
+ return emphasisAdded(context.getString(R.string.TheadRecord_secure_session_ended));
} else {
if (Util.isEmpty(getBody().getBody())) {
return new SpannableString(context.getString(R.string.MessageNotifier_no_subject));