Ensure we don't enqueue a ProfileKeySendJob to a v2 group.

fork-5.53.8
Greyson Parrelli 2021-05-13 11:52:26 -04:00
rodzic 07bd9ad840
commit 6c7848b750
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -276,7 +276,7 @@ public final class MessageContentProcessor {
ApplicationDependencies.getJobManager().startChain(new RefreshAttributesJob(false))
.then(GroupV2UpdateSelfProfileKeyJob.withQueueLimits(groupId.get().requireV2()))
.enqueue();
} else {
} else if (!sender.isPushV2Group()) {
Log.i(TAG, "Message was to a 1:1 or GV1 chat. Ensuring this user has our profile key.");
ApplicationDependencies.getJobManager().startChain(new RefreshAttributesJob(false))
.then(ProfileKeySendJob.create(context, DatabaseFactory.getThreadDatabase(context).getThreadIdFor(sender), true))