mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-28 19:11:30 +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(
|
_notificationsViewModel = CollectionItemsViewModel(
|
||||||
collectionService: identification.service.notificationsService(),
|
collectionService: identification.service.notificationsService(),
|
||||||
identification: identification)
|
identification: identification)
|
||||||
|
_notificationsViewModel?.request(maxId: nil, minId: nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
return _notificationsViewModel
|
return _notificationsViewModel
|
||||||
|
@ -40,6 +41,7 @@ public final class NavigationViewModel: ObservableObject {
|
||||||
_conversationsViewModel = CollectionItemsViewModel(
|
_conversationsViewModel = CollectionItemsViewModel(
|
||||||
collectionService: identification.service.conversationsService(),
|
collectionService: identification.service.conversationsService(),
|
||||||
identification: identification)
|
identification: identification)
|
||||||
|
_conversationsViewModel?.request(maxId: nil, minId: nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
return _conversationsViewModel
|
return _conversationsViewModel
|
||||||
|
|
Loading…
Reference in a new issue