|
|
@ -91,6 +91,8 @@ public abstract class MessageRecord extends DisplayRecord {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public SpannableString getDisplayBody(@NonNull Context context) {
|
|
|
|
public SpannableString getDisplayBody(@NonNull Context context) {
|
|
|
|
if (isGroupUpdate() && isOutgoing()) {
|
|
|
|
if (isGroupUpdate() && isOutgoing()) {
|
|
|
|
|
|
|
|
return new SpannableString(context.getString(R.string.MessageRecord_you_updated_group));
|
|
|
|
|
|
|
|
} else if (isGroupUpdate()) {
|
|
|
|
return new SpannableString(GroupDescription.Companion.getDescription(context, getBody()).toString(getIndividualRecipient()));
|
|
|
|
return new SpannableString(GroupDescription.Companion.getDescription(context, getBody()).toString(getIndividualRecipient()));
|
|
|
|
} else if (isGroupQuit() && isOutgoing()) {
|
|
|
|
} else if (isGroupQuit() && isOutgoing()) {
|
|
|
|
return new SpannableString(context.getString(R.string.MessageRecord_left_group));
|
|
|
|
return new SpannableString(context.getString(R.string.MessageRecord_left_group));
|
|
|
|