mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 01:31:02 +00:00
Request on view model creation
This commit is contained in:
parent
ecb2197a07
commit
567fc9eeda
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue