Validate that reporting token is non-null and non-empty.

main
Greyson Parrelli 2023-02-22 10:33:56 -05:00
rodzic 316df00287
commit 3ebafca297
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -119,7 +119,7 @@ public final class PushDecryptMessageJob extends BaseJob {
Log.w(TAG, "Ignoring PNI signature because the feature flag is disabled!");
}
if (envelope.hasReportingToken()) {
if (envelope.hasReportingToken() && envelope.getReportingToken() != null && envelope.getReportingToken().length > 0) {
SignalDatabase.recipients().setReportingToken(RecipientId.from(result.getContent().getSender()), envelope.getReportingToken());
}