mirror of
https://github.com/nolanlawson/pinafore
synced 2025-02-01 14:26:45 +01:00
chore: refactor instance observer code, remove double call (#722)
This commit is contained in:
parent
09f3281e36
commit
618ea31a57
@ -25,12 +25,11 @@ export function instanceObservers (store) {
|
|||||||
if (!currentInstance) {
|
if (!currentInstance) {
|
||||||
return
|
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)
|
await updateInstanceInfo(currentInstance)
|
||||||
|
|
||||||
let currentInstanceIsUnchanged = () => {
|
let currentInstanceIsUnchanged = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user