fix: appstatesyncdata in multifileauthstate

This commit is contained in:
Adhiraj Singh
2022-05-25 12:14:17 +05:30
parent ed557967d1
commit 24a2b4150a

View File

@@ -49,7 +49,7 @@ export const useMultiFileAuthState = async(folder: string): Promise<{ state: Aut
async id => {
let value = await readData(`${type}-${id}.json`)
if(type === 'app-state-sync-key') {
value = proto.AppStateSyncKeyData.fromObject(data)
value = proto.AppStateSyncKeyData.fromObject(value)
}
data[id] = value