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:
0x330a
2023-10-11 10:40:50 +11:00
parent f71c56022d
commit e06f9ee79a
3 changed files with 52 additions and 5 deletions

View File

@@ -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())