Skip to content

Commit

Permalink
Properly render reset session update messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Jul 31, 2020
1 parent 4c30b39 commit 4942d83
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ public SpannableString getDisplayBody(@NonNull Context context) {
else return fromRecipient(getIndividualRecipient(), r -> context.getString(R.string.MessageRecord_you_marked_your_safety_number_with_s_unverified_from_another_device, r.getDisplayName(context)));
} else if (isProfileChange()) {
return staticUpdateDescription(getProfileChangeDescription(context));
} else if (isEndSession()) {
if (isOutgoing()) return staticUpdateDescription(context.getString(R.string.SmsMessageRecord_secure_session_reset));
else return fromRecipient(getIndividualRecipient(), r-> context.getString(R.string.SmsMessageRecord_secure_session_reset_s, r.getDisplayName(context)));
}

return null;
Expand Down

0 comments on commit 4942d83

Please sign in to comment.