mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +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) {
|
||||
Log.d(TAG, "updateExpirationTimer() called with: message = $message")
|
||||
|
||||
if (!message.isOutgoing) binding.messageStatusTextView.bringToFront()
|
||||
|
||||
val expireStarted = message.expireStarted.takeIf { it > 0 } ?: SnodeAPI.nowWithOffset
|
||||
|
||||
val id = message.getId()
|
||||
val mms = message.isMms
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user