Fix build after logical conflict (#4036)

Ugh, I didn't notice that #3480 was affected by the notification
fragment rollback
This commit is contained in:
Levi Bard 2023-09-26 20:04:06 +02:00 committed by GitHub
commit 2dceecb591
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 18 deletions

View file

@ -91,8 +91,8 @@ class TimelineCases @Inject constructor(
} else {
mastodonApi.unreblogStatusOld(statusId)
}
return call.doAfterSuccess {
eventHub.dispatchOld(ReblogEvent(statusId, reblog))
return call.doAfterSuccess { status ->
eventHub.dispatchOld(StatusChangedEvent(status))
}
}
@ -102,8 +102,8 @@ class TimelineCases @Inject constructor(
} else {
mastodonApi.unfavouriteStatusOld(statusId)
}
return call.doAfterSuccess {
eventHub.dispatchOld(FavoriteEvent(statusId, favourite))
return call.doAfterSuccess { status ->
eventHub.dispatchOld(StatusChangedEvent(status))
}
}
@ -113,8 +113,8 @@ class TimelineCases @Inject constructor(
} else {
mastodonApi.unbookmarkStatusOld(statusId)
}
return call.doAfterSuccess {
eventHub.dispatchOld(BookmarkEvent(statusId, bookmark))
return call.doAfterSuccess { status ->
eventHub.dispatchOld(StatusChangedEvent(status))
}
}