Skip to content

Commit

Permalink
Refactored code.| #1806
Browse files Browse the repository at this point in the history
  • Loading branch information
DenBond7 committed May 18, 2022
1 parent 31b184f commit 9084d31
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
package com.flowcrypt.email.database.dao

import androidx.lifecycle.LiveData
import androidx.paging.DataSource
import androidx.paging.PagingSource
import androidx.room.Dao
import androidx.room.Query
Expand Down Expand Up @@ -81,12 +80,6 @@ abstract class MessageDao : BaseDao<MessageEntity> {
msgsUID: Collection<Long>?
): List<MessageEntity>

@Query("SELECT * FROM messages WHERE email = :account AND folder = :folder ORDER BY received_date DESC")
abstract fun getMessagesDataSourceFactory(
account: String,
folder: String
): DataSource.Factory<Int, MessageEntity>

@Query("SELECT * FROM messages WHERE email = :account AND folder = :folder ORDER BY received_date DESC")
abstract fun getMessagesPagingDataSourceFactory(
account: String,
Expand Down

0 comments on commit 9084d31

Please sign in to comment.