From 4c9fd557160a47babbe95b914c025e3ed0f4482a Mon Sep 17 00:00:00 2001 From: Ryan ZHAO Date: Tue, 8 Sep 2020 16:57:35 +1000 Subject: [PATCH] fix other platform can't get Android's profile picture --- src/org/thoughtcrime/securesms/database/ThreadDatabase.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/thoughtcrime/securesms/database/ThreadDatabase.java b/src/org/thoughtcrime/securesms/database/ThreadDatabase.java index 41903ae23e..f58471b9ba 100644 --- a/src/org/thoughtcrime/securesms/database/ThreadDatabase.java +++ b/src/org/thoughtcrime/securesms/database/ThreadDatabase.java @@ -528,6 +528,7 @@ public class ThreadDatabase extends Database { if (cursor != null && cursor.moveToFirst()) { return cursor.getLong(cursor.getColumnIndexOrThrow(ID)); } else { + DatabaseFactory.getRecipientDatabase(context).setProfileSharing(recipient, true); return createThreadForRecipient(recipient.getAddress(), recipient.isGroupRecipient(), distributionType); } } finally {