Fix loading contexts of reblogs

This commit is contained in:
Justin Mazzocchi 2020-09-02 19:23:58 -07:00
parent 2ef7b00130
commit 280ec03ee9
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -74,7 +74,9 @@ public extension StatusListViewModel {
}
func contextViewModel(id: String) -> StatusListViewModel {
StatusListViewModel(statusListService: statusListService.contextService(statusID: id))
let displayStatusID = statuses[id]?.displayStatus.id ?? id
return StatusListViewModel(statusListService: statusListService.contextService(statusID: displayStatusID))
}
}