Properly render reset session update messages.
This commit is contained in:
parent
4c30b39e71
commit
4942d83de5
1 changed files with 3 additions and 0 deletions
|
@ -159,6 +159,9 @@ public abstract class MessageRecord extends DisplayRecord {
|
||||||
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 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()) {
|
} else if (isProfileChange()) {
|
||||||
return staticUpdateDescription(getProfileChangeDescription(context));
|
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;
|
return null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue