better resilience

This commit is contained in:
Nicolas Constant 2019-07-06 22:16:40 -04:00
parent 2d6882b1f8
commit fbf65b39c8
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
2 changed files with 3 additions and 0 deletions

View File

@ -91,6 +91,8 @@ export class PollComponent implements OnInit {
this.pollPerAccountId[newSelectedAccount.id] = this.toolsService.getStatusUsableByAccount(newSelectedAccount, new StatusWrapper(this.statusWrapper.status, this.statusWrapper.provider))
.then((status: Status) => {
if(status.poll === null) return null;
return this.mastodonService.getPoll(newSelectedAccount, status.poll.id);
})
.then((poll: Poll) => {

View File

@ -79,6 +79,7 @@ export class StreamStatusesComponent implements OnInit, OnDestroy {
this.streamsSubscription = this.streams$.subscribe((streams: StreamElement[]) => {
let updatedStream = streams.find(x => x.id === this.streamElement.id);
if(!updatedStream) return;
if (this.hideBoosts !== updatedStream.hideBoosts
|| this.hideBots !== updatedStream.hideBots