Fixed a bug where message requests could incorrectly appear in the thread list (#1009)

This commit is contained in:
Morgan Pretty 2022-10-18 15:57:32 +11:00 committed by GitHub
parent 7a773016da
commit aecb40cce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -670,7 +670,6 @@ class Storage(context: Context, helper: SQLCipherOpenHelper) : Database(context,
val threadId = threadDatabase.getOrCreateThreadIdFor(recipient) val threadId = threadDatabase.getOrCreateThreadIdFor(recipient)
if (contact.didApproveMe == true) { if (contact.didApproveMe == true) {
recipientDatabase.setApprovedMe(recipient, true) recipientDatabase.setApprovedMe(recipient, true)
threadDatabase.setHasSent(threadId, true)
} }
if (contact.isApproved == true) { if (contact.isApproved == true) {
recipientDatabase.setApproved(recipient, true) recipientDatabase.setApproved(recipient, true)