mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 14:08:26 +00:00
Remove disappearing messages scheduling from VisibleMessageView
This commit is contained in:
parent
7fd036dee9
commit
5a047daefc
@ -352,21 +352,9 @@ class VisibleMessageView : LinearLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun updateExpirationTimer(message: MessageRecord) {
|
private fun updateExpirationTimer(message: MessageRecord) {
|
||||||
Log.d(TAG, "updateExpirationTimer() called with: message = $message")
|
|
||||||
|
|
||||||
if (!message.isOutgoing) binding.messageStatusTextView.bringToFront()
|
if (!message.isOutgoing) binding.messageStatusTextView.bringToFront()
|
||||||
|
|
||||||
val expireStarted = message.expireStarted.takeIf { it > 0 } ?: SnodeAPI.nowWithOffset
|
val expireStarted = message.expireStarted.takeIf { it > 0 } ?: SnodeAPI.nowWithOffset
|
||||||
|
|
||||||
val id = message.getId()
|
|
||||||
val mms = message.isMms
|
|
||||||
binding.expirationTimerView.setExpirationTime(expireStarted, message.expiresIn)
|
binding.expirationTimerView.setExpirationTime(expireStarted, message.expiresIn)
|
||||||
ThreadUtils.queue {
|
|
||||||
val db = if (mms) mmsDb else smsDb
|
|
||||||
db.markExpireStarted(id, expireStarted)
|
|
||||||
ApplicationContext.getInstance(context).expiringMessageManager
|
|
||||||
.scheduleDeletion(id, mms, expireStarted, message.expiresIn)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun handleIsSelectedChanged() {
|
private fun handleIsSelectedChanged() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user