fix other platform can't get Android's profile picture

This commit is contained in:
Ryan ZHAO 2020-09-08 16:57:35 +10:00
parent 1eb38a1447
commit 4c9fd55716

View File

@ -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 {