fix undoing action not updating global state
This commit is contained in:
parent
aa705d7c5b
commit
93847df4d8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue