diff --git a/mobile/lib/controllers/chat/active_chat_controller.dart b/mobile/lib/controllers/chat/active_chat_controller.dart index a2b47c8..ed554bb 100644 --- a/mobile/lib/controllers/chat/active_chat_controller.dart +++ b/mobile/lib/controllers/chat/active_chat_controller.dart @@ -150,6 +150,9 @@ class ActiveChatController extends ChangeNotifier { await _cache(targetUid, older); } catch (e) { debugPrint("Failed to load older messages: $e"); + // Stop paging until the chat is reopened; otherwise the rebuild below + // re-triggers this from the scroll listener in a tight retry loop. + hasMoreMessages = false; } finally { isLoadingMore = false; notifyListeners();