mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +00:00
fix: don't process thread creation for user is sender && recipient (sync message) for message request responses
This commit is contained in:
parent
456e272a45
commit
d207d00423
@ -1273,7 +1273,14 @@ open class Storage(context: Context, helper: SQLCipherOpenHelper, private val co
|
||||
val userPublicKey = getUserPublicKey()
|
||||
val senderPublicKey = response.sender!!
|
||||
val recipientPublicKey = response.recipient!!
|
||||
if (userPublicKey == null || (userPublicKey != recipientPublicKey && userPublicKey != senderPublicKey)) return
|
||||
|
||||
if (
|
||||
userPublicKey == null
|
||||
|| (userPublicKey != recipientPublicKey && userPublicKey != senderPublicKey)
|
||||
// this is true if it is a sync message
|
||||
|| (userPublicKey == recipientPublicKey && userPublicKey == senderPublicKey)
|
||||
) return
|
||||
|
||||
val recipientDb = DatabaseComponent.get(context).recipientDatabase()
|
||||
val threadDB = DatabaseComponent.get(context).threadDatabase()
|
||||
if (userPublicKey == senderPublicKey) {
|
||||
|
Loading…
Reference in New Issue
Block a user