pull more notifications at once

This commit is contained in:
2026-06-10 00:33:43 +05:00
parent fbc34d6435
commit 71002ed70c
2 changed files with 2 additions and 2 deletions
@@ -117,7 +117,7 @@ class MibActivityHistoryClient {
session: MibSession,
loginId: String,
minCount: Int = 5,
pageSize: Int = 30
pageSize: Int = 100
): FetchResult {
val accumulated = mutableListOf<AppNotification>()
var start = 1
@@ -223,7 +223,7 @@ class NotificationsSheetFragment : BottomSheetDialogFragment() {
if (mibDone[loginId] == true) return@forEach
val start = mibNextStart[loginId] ?: 1
val result = withContext(Dispatchers.IO) {
mibClient.fetchActivity(session, loginId, start, start + 29)
mibClient.fetchActivity(session, loginId, start, start + 99)
}
if (result.items.isNotEmpty() && isAdded) {
val readIds = NotificationsCache.getMibReadIds(requireContext())