Rename dismissInvalidResource to dismissCollectionError (#1887)

Rename method for clarity

Signed-off-by: Sunik Kupfer <kupfer@bitfire.at>
This commit is contained in:
Sunik Kupfer
2025-12-17 13:14:06 +01:00
committed by GitHub
parent 01f54df3c0
commit 776305bd12
2 changed files with 3 additions and 3 deletions

View File

@@ -136,7 +136,7 @@ abstract class SyncManager<LocalType: LocalResource, out CollectionType: LocalCo
suspend fun performSync() = withContext(syncDispatcher) { suspend fun performSync() = withContext(syncDispatcher) {
// dismiss previous error notifications // dismiss previous error notifications
syncNotificationManager.dismissInvalidResource(localCollectionTag = localCollection.tag) syncNotificationManager.dismissCollectionError(localCollectionTag = localCollection.tag)
try { try {
logger.info("Preparing synchronization") logger.info("Preparing synchronization")

View File

@@ -159,7 +159,7 @@ class SyncNotificationManager @AssistedInject constructor(
/** /**
* Sends a notification to inform the user that a push notification has been received, the * Sends a notification to inform the user that a push notification has been received, the
* sync has been scheduled, but it still has not run. * sync has been scheduled, but it still has not run.
* Use [dismissInvalidResource] to dismiss the notification. * Use [dismissCollectionError] to dismiss the notification.
* *
* @param dataType The type of data which was synced. * @param dataType The type of data which was synced.
* @param notificationTag The tag to use for the notification. * @param notificationTag The tag to use for the notification.
@@ -200,7 +200,7 @@ class SyncNotificationManager @AssistedInject constructor(
* *
* @param localCollectionTag The tag of the local collection which is used as notification tag also. * @param localCollectionTag The tag of the local collection which is used as notification tag also.
*/ */
fun dismissInvalidResource(localCollectionTag: String) = fun dismissCollectionError(localCollectionTag: String) =
dismissNotification(localCollectionTag) dismissNotification(localCollectionTag)