1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Push add more types

This commit is contained in:
Zhiyuan Zheng
2022-05-29 01:57:15 +02:00
parent 242b11761b
commit 6b4c2d18ec
7 changed files with 48 additions and 4 deletions

View File

@ -110,6 +110,20 @@ const instancesMigration = {
...instance.notifications_filter,
status: true,
update: true
},
push: {
...instance.push,
alerts: {
...instance.push.alerts,
follow_request: {
loading: false,
value: true
},
status: {
loading: false,
value: true
}
}
}
}
})

View File

@ -38,6 +38,10 @@ export type InstanceV10 = {
loading: boolean
value: Mastodon.PushSubscription['alerts']['follow']
}
follow_request: {
loading: boolean
value: Mastodon.PushSubscription['alerts']['follow_request']
}
favourite: {
loading: boolean
value: Mastodon.PushSubscription['alerts']['favourite']
@ -54,6 +58,10 @@ export type InstanceV10 = {
loading: boolean
value: Mastodon.PushSubscription['alerts']['poll']
}
status: {
loading: boolean
value: Mastodon.PushSubscription['alerts']['status']
}
}
keys: {
auth?: string

View File

@ -94,10 +94,12 @@ const addInstance = createAsyncThunk(
decode: { loading: false, value: false },
alerts: {
follow: { loading: false, value: true },
follow_request: { loading: false, value: true },
favourite: { loading: false, value: true },
reblog: { loading: false, value: true },
mention: { loading: false, value: true },
poll: { loading: false, value: true }
poll: { loading: false, value: true },
status: { loading: false, value: true }
},
keys: { auth: undefined, public: undefined, private: undefined }
},