chore: refactor instance observer code, remove double call (#722)

issue-724
Nolan Lawson 2018-12-04 06:44:19 -08:00 zatwierdzone przez GitHub
rodzic 09f3281e36
commit 618ea31a57
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -25,12 +25,11 @@ export function instanceObservers (store) {
if (!currentInstance) {
return
}
updateVerifyCredentialsForInstance(currentInstance)
updateInstanceInfo(currentInstance)
updateCustomEmojiForInstance(currentInstance)
updateLists()
updatePushSubscriptionForInstance(currentInstance)
/* no await */ updateVerifyCredentialsForInstance(currentInstance)
/* no await */ updateCustomEmojiForInstance(currentInstance)
/* no await */ updateLists()
/* no await */ updatePushSubscriptionForInstance(currentInstance)
await updateInstanceInfo(currentInstance)
let currentInstanceIsUnchanged = () => {