From 567fc9eeda742fd1efd220ade0f43268530d4d37 Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Sun, 8 Nov 2020 16:34:59 -0800 Subject: [PATCH] Request on view model creation --- ViewModels/Sources/ViewModels/NavigationViewModel.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ViewModels/Sources/ViewModels/NavigationViewModel.swift b/ViewModels/Sources/ViewModels/NavigationViewModel.swift index 27a84d0..4eb0dcd 100644 --- a/ViewModels/Sources/ViewModels/NavigationViewModel.swift +++ b/ViewModels/Sources/ViewModels/NavigationViewModel.swift @@ -26,6 +26,7 @@ public final class NavigationViewModel: ObservableObject { _notificationsViewModel = CollectionItemsViewModel( collectionService: identification.service.notificationsService(), identification: identification) + _notificationsViewModel?.request(maxId: nil, minId: nil) } return _notificationsViewModel @@ -40,6 +41,7 @@ public final class NavigationViewModel: ObservableObject { _conversationsViewModel = CollectionItemsViewModel( collectionService: identification.service.conversationsService(), identification: identification) + _conversationsViewModel?.request(maxId: nil, minId: nil) } return _conversationsViewModel