Fix possible crash in ProfileKeySendJob if given an invalid threadId.

This commit is contained in:
Greyson Parrelli
2022-07-01 11:06:37 -04:00
parent e413ee4ed9
commit be2ed8989f
5 changed files with 20 additions and 10 deletions

View File

@@ -144,7 +144,7 @@ final class MessageRequestRepository {
RecipientDatabase recipientDatabase = SignalDatabase.recipients();
recipientDatabase.setProfileSharing(liveRecipient.getId(), true);
MessageSender.sendProfileKey(context, threadId);
MessageSender.sendProfileKey(threadId);
List<MessageDatabase.MarkedMessageInfo> messageIds = SignalDatabase.threads().setEntireThreadRead(threadId);
ApplicationDependencies.getMessageNotifier().updateNotification(context);