Fix possible exception when rendering SSE event.

Fixes #13390
This commit is contained in:
Greyson Parrelli 2024-01-29 10:16:10 -05:00 committed by Nicholas Tinsley
parent 838165c3e6
commit 466acaf504

View file

@ -256,7 +256,7 @@ public abstract class MessageRecord extends DisplayRecord {
if (event.e164.isEmpty()) {
return fromRecipient(getFromRecipient(), r -> context.getString(R.string.MessageRecord_your_safety_number_with_s_has_changed, r.getDisplayName(context)), R.drawable.ic_update_safety_number_16);
} else {
return fromRecipient(getFromRecipient(), r -> context.getString(R.string.MessageRecord_s_belongs_to_s, PhoneNumberFormatter.prettyPrint(r.requireE164()), r.getDisplayName(context)), R.drawable.ic_update_info_16);
return fromRecipient(getFromRecipient(), r -> context.getString(R.string.MessageRecord_s_belongs_to_s, PhoneNumberFormatter.prettyPrint(event.e164), r.getDisplayName(context)), R.drawable.ic_update_info_16);
}
} catch (IOException e) {
throw new AssertionError(e);