Improve quote model generation.
This commit is contained in:
parent
b3672273e8
commit
13bd003564
1 changed files with 2 additions and 0 deletions
|
@ -357,6 +357,8 @@ public abstract class PushSendJob extends SendJob {
|
|||
|
||||
if (quoteAuthorRecipient.isMaybeRegistered()) {
|
||||
return Optional.of(new SignalServiceDataMessage.Quote(quoteId, RecipientUtil.getOrFetchServiceId(context, quoteAuthorRecipient), quoteBody, quoteAttachments, quoteMentions, quoteType.getDataMessageType()));
|
||||
} else if (quoteAuthorRecipient.hasServiceId()) {
|
||||
return Optional.of(new SignalServiceDataMessage.Quote(quoteId, quoteAuthorRecipient.requireServiceId(), quoteBody, quoteAttachments, quoteMentions, quoteType.getDataMessageType()));
|
||||
} else {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue