mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Use Recipient instead of Chip
This commit is contained in:
@@ -37,11 +37,10 @@ class CursorToRecipientImpl @Inject constructor(
|
||||
const val COLUMN_ADDRESS = 1
|
||||
}
|
||||
|
||||
override fun map(from: Cursor) = Recipient().apply {
|
||||
id = from.getLong(COLUMN_ID)
|
||||
address = from.getString(COLUMN_ADDRESS)
|
||||
lastUpdate = System.currentTimeMillis()
|
||||
}
|
||||
override fun map(from: Cursor) = Recipient(
|
||||
id = from.getLong(COLUMN_ID),
|
||||
address = from.getString(COLUMN_ADDRESS),
|
||||
lastUpdate = System.currentTimeMillis())
|
||||
|
||||
override fun getRecipientCursor(): Cursor? {
|
||||
return when (permissionManager.hasReadSms()) {
|
||||
|
||||
Reference in New Issue
Block a user