mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-03 13:47:45 +00:00
Set NTS to 14 days ago when created in updateUser
This commit is contained in:
parent
d143d8a883
commit
1a81c7278a
@ -494,7 +494,10 @@ open class Storage(
|
||||
deleteConversation(ourThread)
|
||||
} else {
|
||||
// create note to self thread if needed (?)
|
||||
val ourThread = getOrCreateThreadIdFor(recipient.address)
|
||||
val address = recipient.address
|
||||
val ourThread = getThreadId(address) ?: getOrCreateThreadIdFor(address).also {
|
||||
setThreadDate(it, SnodeAPI.nowWithOffset - 14.days.inWholeMilliseconds)
|
||||
}
|
||||
DatabaseComponent.get(context).threadDatabase().setHasSent(ourThread, true)
|
||||
setPinned(ourThread, userProfile.getNtsPriority() > 0)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user