mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: appstatesyncdata in multifileauthstate
This commit is contained in:
@@ -49,7 +49,7 @@ export const useMultiFileAuthState = async(folder: string): Promise<{ state: Aut
|
|||||||
async id => {
|
async id => {
|
||||||
let value = await readData(`${type}-${id}.json`)
|
let value = await readData(`${type}-${id}.json`)
|
||||||
if(type === 'app-state-sync-key') {
|
if(type === 'app-state-sync-key') {
|
||||||
value = proto.AppStateSyncKeyData.fromObject(data)
|
value = proto.AppStateSyncKeyData.fromObject(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
data[id] = value
|
data[id] = value
|
||||||
|
|||||||
Reference in New Issue
Block a user