mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-06 04:22:14 +00:00
refactor: change storage adding contacts to create one on ones with a non hidden thread priority and base for testing storage expiration merges from fake polling
This commit is contained in:
@@ -1217,7 +1217,7 @@ open class Storage(
|
||||
deleteConversation(conversationThreadId)
|
||||
}
|
||||
} else {
|
||||
getThreadId(fromSerialized(contact.id))?.let { conversationThreadId ->
|
||||
getOrCreateThreadIdFor(fromSerialized(contact.id)).let { conversationThreadId ->
|
||||
setPinned(conversationThreadId, contact.priority == PRIORITY_PINNED)
|
||||
}
|
||||
}
|
||||
@@ -1231,8 +1231,7 @@ open class Storage(
|
||||
contact.expiryMode,
|
||||
timestamp
|
||||
)
|
||||
DatabaseComponent.get(context).expirationConfigurationDatabase()
|
||||
.setExpirationConfiguration(expiration)
|
||||
setExpirationConfiguration(expiration)
|
||||
}
|
||||
}
|
||||
setRecipientHash(recipient, contact.hashCode().toString())
|
||||
|
||||
Reference in New Issue
Block a user