Request on view model creation

This commit is contained in:
Justin Mazzocchi 2020-11-08 16:34:59 -08:00
parent ecb2197a07
commit 567fc9eeda
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -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