mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-11 22:24:00 +01:00
Status detail: Handle status update
This commit is contained in:
parent
6e47f9410d
commit
3e88d89de3
@ -109,14 +109,14 @@ class StatusDetailViewModel: ObservableObject {
|
||||
}
|
||||
|
||||
func handleEvent(event: any StreamEvent, currentAccount: Account?) {
|
||||
if let event = event as? StreamEventUpdate,
|
||||
event.status.account.id == currentAccount?.id
|
||||
{
|
||||
Task {
|
||||
Task {
|
||||
if let event = event as? StreamEventUpdate,
|
||||
event.status.account.id == currentAccount?.id {
|
||||
await fetchStatusDetail(animate: true)
|
||||
}
|
||||
} else if event is StreamEventDelete {
|
||||
Task {
|
||||
} else if let event = event as? StreamEventStatusUpdate,
|
||||
event.status.account.id == currentAccount?.id {
|
||||
await fetchStatusDetail(animate: true)
|
||||
} else if event is StreamEventDelete {
|
||||
await fetchStatusDetail(animate: true)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user