File tree Expand file tree Collapse file tree 1 file changed +16
-18
lines changed Expand file tree Collapse file tree 1 file changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -11,27 +11,23 @@ import {
11
11
showAudioOutputDevicesSelectionSheet ,
12
12
} from './utils'
13
13
14
- export type PluginStorage = {
15
- silentCall : {
16
- enabled : boolean
17
- users : Record < string , boolean >
18
- }
19
- rememberOutputDevice : {
20
- enabled : boolean
21
- device ?: AudioDevice
14
+ export type PluginStorageVersions = {
15
+ 2 : {
16
+ v : 2
17
+ silentCall : {
18
+ enabled : boolean
19
+ users : Record < string , boolean >
20
+ }
21
+ rememberOutputDevice : {
22
+ enabled : boolean
23
+ device ?: AudioDevice
24
+ }
22
25
}
23
26
}
24
27
25
- export const vstorage = storage as {
26
- silentCall : {
27
- enabled : boolean
28
- users : Record < string , boolean >
29
- }
30
- rememberOutputDevice : {
31
- enabled : boolean
32
- device ?: AudioDevice
33
- }
34
- }
28
+ export type PluginStorage = PluginStorageVersions [ 2 ]
29
+
30
+ export const vstorage = storage as PluginStorage
35
31
36
32
export const unpatches : {
37
33
silentCall : UnpatchFunction [ ]
@@ -165,6 +161,8 @@ export default {
165
161
166
162
// TODO: Maybe force rerender of PrivateChannelButtons
167
163
function onModuleStatusUpdate ( _firstRun ?: boolean ) {
164
+ vstorage . v ??= 2
165
+
168
166
vstorage . silentCall ??= {
169
167
enabled : true ,
170
168
users : { } ,
You can’t perform that action at this time.
0 commit comments