Fix bug where name wouldn't refresh when getting a message request.

This commit is contained in:
Greyson Parrelli
2023-09-11 12:46:53 -04:00
committed by Alex Hart
parent 1cca60fa53
commit e41accf52d

View File

@@ -222,7 +222,9 @@ object DataMessageProcessor {
}
if (SignalDatabase.recipients.setProfileKey(senderRecipient.id, messageProfileKey)) {
log(timestamp, "Profile key on message from " + senderRecipient.id + " didn't match our local store. It has been updated.")
ApplicationDependencies.getJobManager().add(RetrieveProfileJob.forRecipient(senderRecipient.id))
SignalDatabase.runPostSuccessfulTransaction {
ApplicationDependencies.getJobManager().add(RetrieveProfileJob.forRecipient(senderRecipient.id))
}
}
} else {
warn(timestamp.toString(), "Ignored invalid profile key seen in message")