Remove disappearing messages scheduling from VisibleMessageView

This commit is contained in:
Andrew 2024-01-11 10:34:40 +10:30
parent 7fd036dee9
commit 5a047daefc

View File

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