Refactoring

This commit is contained in:
M66B 2020-03-20 19:43:00 +01:00
parent e0cc889998
commit 97ecfeb95f
1 changed files with 3 additions and 3 deletions

View File

@ -2049,7 +2049,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (tcm == null)
return null;
Person person = isOutgoing(message)
Person author = isOutgoing(message)
? ConversationActions.Message.PERSON_USER_SELF
: ConversationActions.Message.PERSON_USER_OTHERS;
ZonedDateTime dt = new Date(message.received)
@ -2057,11 +2057,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
.atZone(ZoneId.systemDefault());
List<ConversationActions.Message> input = new ArrayList<>();
if (!TextUtils.isEmpty(message.subject))
input.add(new ConversationActions.Message.Builder(person)
input.add(new ConversationActions.Message.Builder(author)
.setReferenceTime(dt)
.setText(message.subject)
.build());
input.add(new ConversationActions.Message.Builder(person)
input.add(new ConversationActions.Message.Builder(author)
.setReferenceTime(dt)
.setText(document.text())
.build());