Skip to content

Commit

Permalink
Spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
nikclayton committed Jan 23, 2025
1 parent dca63e9 commit cc102f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class CachedTimelineRemoteMediator(
when (loadType) {
LoadType.REFRESH -> {
remoteKeyDao.deletePrevNext(pachliAccountId, RKE_TIMELINE_ID)
timelineDao.deleteAlLStatusesForAccount(pachliAccountId)
timelineDao.deleteAllStatusesForAccount(pachliAccountId)

remoteKeyDao.upsert(
RemoteKeyEntity(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class DeveloperToolsUseCase @Inject constructor(
* Clear the home timeline cache.
*/
suspend fun clearHomeTimelineCache(accountId: Long) {
timelineDao.deleteAlLStatusesForAccount(accountId)
timelineDao.deleteAllStatusesForAccount(accountId)
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,23 +169,6 @@ WHERE timelineUserId = :pachliAccountId AND (serverId = :statusId OR reblogServe
)
abstract suspend fun removeAllByUser(pachliAccountId: Long, userId: String)

/**
* Removes everything for one account in the following tables:
*
* - TimelineStatusEntity
* - TimelineAccountEntity
* - StatusViewDataEntity
* - TranslatedStatusEntity
*
* @param accountId id of the account for which to clean tables
*/
suspend fun removeAll(accountId: Long) {
deleteAlLStatusesForAccount(accountId)
removeAllAccounts(accountId)
removeAllStatusViewData(accountId)
removeAllTranslatedStatus(accountId)
}

/**
* Removes all statuses from the cached **home** timeline.
*
Expand All @@ -203,7 +186,7 @@ WHERE timelineUserId = :pachliAccountId AND (serverId = :statusId OR reblogServe
)
""",
)
abstract suspend fun deleteAlLStatusesForAccount(accountId: Long)
abstract suspend fun deleteAllStatusesForAccount(accountId: Long)

/**
* Deletes [TimelineAccountEntity] that are not referenced by a
Expand Down

0 comments on commit cc102f5

Please sign in to comment.