mirror of https://github.com/M66B/FairEmail.git
Refactoring
This commit is contained in:
parent
e0cc889998
commit
97ecfeb95f
|
@ -2049,7 +2049,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
if (tcm == null)
|
if (tcm == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
Person person = isOutgoing(message)
|
Person author = isOutgoing(message)
|
||||||
? ConversationActions.Message.PERSON_USER_SELF
|
? ConversationActions.Message.PERSON_USER_SELF
|
||||||
: ConversationActions.Message.PERSON_USER_OTHERS;
|
: ConversationActions.Message.PERSON_USER_OTHERS;
|
||||||
ZonedDateTime dt = new Date(message.received)
|
ZonedDateTime dt = new Date(message.received)
|
||||||
|
@ -2057,11 +2057,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
.atZone(ZoneId.systemDefault());
|
.atZone(ZoneId.systemDefault());
|
||||||
List<ConversationActions.Message> input = new ArrayList<>();
|
List<ConversationActions.Message> input = new ArrayList<>();
|
||||||
if (!TextUtils.isEmpty(message.subject))
|
if (!TextUtils.isEmpty(message.subject))
|
||||||
input.add(new ConversationActions.Message.Builder(person)
|
input.add(new ConversationActions.Message.Builder(author)
|
||||||
.setReferenceTime(dt)
|
.setReferenceTime(dt)
|
||||||
.setText(message.subject)
|
.setText(message.subject)
|
||||||
.build());
|
.build());
|
||||||
input.add(new ConversationActions.Message.Builder(person)
|
input.add(new ConversationActions.Message.Builder(author)
|
||||||
.setReferenceTime(dt)
|
.setReferenceTime(dt)
|
||||||
.setText(document.text())
|
.setText(document.text())
|
||||||
.build());
|
.build());
|
||||||
|
|
Loading…
Reference in New Issue