move logic from Storage to OpenGroupAPIV2

This commit is contained in:
Brice-W
2021-05-24 13:13:07 +10:00
parent 1b25de6a96
commit 6c37e7a93f
2 changed files with 4 additions and 6 deletions

View File

@@ -233,8 +233,6 @@ class Storage(context: Context, helper: SQLCipherOpenHelper) : Database(context,
}
override fun getLastMessageServerID(room: String, server: String): Long? {
// return null if limit is set on open groups polling
if (TextSecurePreferences.isOpenGroupPollingLimit(context)) return null
return DatabaseFactory.getLokiAPIDatabase(context).getLastMessageServerID(room, server)
}
@@ -247,8 +245,6 @@ class Storage(context: Context, helper: SQLCipherOpenHelper) : Database(context,
}
override fun getLastDeletionServerID(room: String, server: String): Long? {
// return null if limit is set on open groups polling
if (TextSecurePreferences.isOpenGroupPollingLimit(context)) return null
return DatabaseFactory.getLokiAPIDatabase(context).getLastDeletionServerID(room, server)
}