mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-17 21:47:28 +00:00
parent
0cd4cc67af
commit
745faa12a7
@ -87,15 +87,8 @@ public class ConversationUpdateItem extends LinearLayout
|
|||||||
private void setGroupRecord(MessageRecord messageRecord) {
|
private void setGroupRecord(MessageRecord messageRecord) {
|
||||||
icon.setImageResource(R.drawable.ic_group_grey600_24dp);
|
icon.setImageResource(R.drawable.ic_group_grey600_24dp);
|
||||||
|
|
||||||
if (messageRecord.isGroupQuit() && messageRecord.isOutgoing()) {
|
GroupUtil.getDescription(getContext(), messageRecord.getBody().getBody()).addListener(this);
|
||||||
body.setText(R.string.MessageRecord_left_group);
|
body.setText(messageRecord.getDisplayBody());
|
||||||
} else if (messageRecord.isGroupQuit()) {
|
|
||||||
body.setText(getContext().getString(R.string.ConversationItem_group_action_left, sender.toShortString()));
|
|
||||||
} else {
|
|
||||||
GroupUtil.GroupDescription description = GroupUtil.getDescription(getContext(), messageRecord.getBody().getBody());
|
|
||||||
description.addListener(this);
|
|
||||||
body.setText(description.toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
date.setVisibility(View.GONE);
|
date.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user