kopia lustrzana https://github.com/ryukoposting/Signal-Android
Improve quote model generation.
rodzic
b3672273e8
commit
13bd003564
|
@ -357,6 +357,8 @@ public abstract class PushSendJob extends SendJob {
|
||||||
|
|
||||||
if (quoteAuthorRecipient.isMaybeRegistered()) {
|
if (quoteAuthorRecipient.isMaybeRegistered()) {
|
||||||
return Optional.of(new SignalServiceDataMessage.Quote(quoteId, RecipientUtil.getOrFetchServiceId(context, quoteAuthorRecipient), quoteBody, quoteAttachments, quoteMentions, quoteType.getDataMessageType()));
|
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 {
|
} else {
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue