mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Fix possible crash in ProfileKeySendJob if given an invalid threadId.
This commit is contained in:
@@ -102,8 +102,11 @@ public class MessageSender {
|
||||
* Suitable for a 1:1 conversation or a GV1 group only.
|
||||
*/
|
||||
@WorkerThread
|
||||
public static void sendProfileKey(final Context context, final long threadId) {
|
||||
ApplicationDependencies.getJobManager().add(ProfileKeySendJob.create(context, threadId, false));
|
||||
public static void sendProfileKey(final long threadId) {
|
||||
ProfileKeySendJob job = ProfileKeySendJob.create(threadId, false);
|
||||
if (job != null) {
|
||||
ApplicationDependencies.getJobManager().add(job);
|
||||
}
|
||||
}
|
||||
|
||||
public static long send(final Context context,
|
||||
|
||||
Reference in New Issue
Block a user