mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 15:53:56 +00:00
committed by
Moxie Marlinspike
parent
e277f9f6d1
commit
d7419caa4b
@@ -95,11 +95,11 @@ public abstract class MessageRecord extends DisplayRecord {
|
||||
@Override
|
||||
public SpannableString getDisplayBody() {
|
||||
if (isGroupUpdate() && isOutgoing()) {
|
||||
return emphasisAdded("Updated the group.");
|
||||
return emphasisAdded(context.getString(R.string.MessageRecord_updated_group));
|
||||
} else if (isGroupUpdate()) {
|
||||
return emphasisAdded(GroupUtil.getDescription(getBody().getBody()));
|
||||
return emphasisAdded(GroupUtil.getDescription(context, getBody().getBody()));
|
||||
} else if (isGroupQuit() && isOutgoing()) {
|
||||
return emphasisAdded("You have left the group.");
|
||||
return emphasisAdded(context.getString(R.string.MessageRecord_left_group));
|
||||
} else if (isGroupQuit()) {
|
||||
return emphasisAdded(context.getString(R.string.ConversationItem_group_action_left, getIndividualRecipient().toShortString()));
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ public class ThreadRecord extends DisplayRecord {
|
||||
if (SmsDatabase.Types.isDecryptInProgressType(type)) {
|
||||
return emphasisAdded(context.getString(R.string.MessageDisplayHelper_decrypting_please_wait));
|
||||
} else if (isGroupUpdate()) {
|
||||
return emphasisAdded(GroupUtil.getDescription(getBody().getBody()));
|
||||
return emphasisAdded(GroupUtil.getDescription(context, getBody().getBody()));
|
||||
} else if (isGroupQuit()) {
|
||||
return emphasisAdded(context.getString(R.string.ThreadRecord_left_the_group));
|
||||
} else if (isKeyExchange()) {
|
||||
|
||||
Reference in New Issue
Block a user