A cheap attempt at a native Bluesky client for Android

Notifications: Remove unused `lastCalled` parameter

The `lastCalled` parameter, which tracked when notifications were last fetched, has been removed from the `notifications()` function. It was no longer being used.

+1 -7
-2
app/src/main/java/industries/geesawra/monarch/datalayer/Bluesky.kt
··· 91 91 import kotlin.time.Clock 92 92 import kotlin.time.Duration 93 93 import kotlin.time.ExperimentalTime 94 - import kotlin.time.Instant 95 94 96 95 enum class AuthData { 97 96 PDSHost, ··· 740 739 741 740 suspend fun notifications( 742 741 cursor: String? = null, 743 - lastCalled: Instant? = null 744 742 ): Result<ListNotificationsResponse> { 745 743 return runCatching { 746 744 create().onFailure {
+1 -5
app/src/main/java/industries/geesawra/monarch/datalayer/TimelineViewModel.kt
··· 26 26 import sh.christian.ozone.api.RKey 27 27 import sh.christian.ozone.api.model.JsonContent 28 28 import kotlin.coroutines.cancellation.CancellationException 29 - import kotlin.time.Clock 30 29 import kotlin.time.ExperimentalTime 31 - import kotlin.time.Instant 32 30 33 31 34 32 data class TimelineUiState( ··· 45 43 46 44 val timelineCursor: String? = null, 47 45 val notificationsCursor: String? = null, 48 - val lastDownloadedNotifs: Instant? = null, 49 46 50 47 val cidInteractedWith: Map<Cid, RKey> = mapOf(), 51 48 ··· 147 144 } 148 145 149 146 notificationsFetchJob = viewModelScope.launch { 150 - val rawNotifs = bskyConn.notifications(uiState.notificationsCursor, Clock.System.now()) 147 + val rawNotifs = bskyConn.notifications(uiState.notificationsCursor) 151 148 .onFailure { 152 149 if (it is CancellationException) { 153 150 return@onFailure ··· 204 201 notifications = uiState.notifications + notifs, 205 202 notificationsCursor = rawNotifs.cursor, 206 203 isFetchingMoreNotifications = false, 207 - lastDownloadedNotifs = Clock.System.now() 208 204 ) 209 205 then() 210 206 }