fix undoing action not updating global state

This commit is contained in:
Nicolas Constant 2021-03-12 19:05:10 -05:00
parent aa705d7c5b
commit 93847df4d8
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 3 additions and 3 deletions

View File

@ -102,13 +102,13 @@ export class ActionBarComponent implements OnInit, OnDestroy {
this.statusStateSub = this.statusStateService.stateNotification.subscribe((state: StatusState) => {
if (state && state.statusId === this.displayedStatus.url) {
if (state.isFavorited) {
if (state.isFavorited !== null) {
this.favoriteStatePerAccountId[state.accountId] = state.isFavorited;
}
if (state.isRebloged) {
if (state.isRebloged !== null) {
this.bootedStatePerAccountId[state.accountId] = state.isRebloged;
}
if (state.isBookmarked) {
if (state.isBookmarked !== null) {
this.bookmarkStatePerAccountId[state.accountId] = state.isBookmarked;
}