Add support for recycle bin for messages
This adds support for moving messages to recycle bin instead of deleting them right away. The feature is not active by default. This closes #451
This commit is contained in:
parent
53aa4495a0
commit
555b6ebea3
13 changed files with 274 additions and 20 deletions
|
|
@ -0,0 +1,15 @@
|
|||
package com.simplemobiletools.smsmessenger.models
|
||||
|
||||
import androidx.room.ColumnInfo
|
||||
import androidx.room.Entity
|
||||
import androidx.room.Index
|
||||
import androidx.room.PrimaryKey
|
||||
|
||||
@Entity(
|
||||
tableName = "recycle_bin_messages",
|
||||
indices = [(Index(value = ["id"], unique = true))]
|
||||
)
|
||||
data class RecycleBinMessage(
|
||||
@PrimaryKey val id: Long,
|
||||
@ColumnInfo(name = "deleted_ts") var deletedTS: Long
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue