Retrofit 2.10.0 (#4330)

https://github.com/square/retrofit/releases/tag/2.10.0
This commit is contained in:
Zongle Wang 2024-03-19 15:32:14 +08:00 committed by GitHub
commit 83cbbe9ada
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 22 deletions

View file

@ -39,7 +39,6 @@ import com.keylesspalace.tusky.util.Single
import com.keylesspalace.tusky.util.getServerErrorMessage
import java.util.Locale
import javax.inject.Inject
import okhttp3.ResponseBody
import retrofit2.Response
/**
@ -182,7 +181,7 @@ class TimelineCases @Inject constructor(
return Single { runCatching { mastodonApi.notifications(maxId, sinceId, limit, excludes) } }
}
fun clearNotificationsOld(): Single<ResponseBody> {
fun clearNotificationsOld(): Single<Unit> {
return Single { mastodonApi.clearNotifications() }
}