fix: undefined on unpin action (#1551)

This commit is contained in:
burstfreeze
2022-04-29 15:02:37 +02:00
committed by GitHub
parent 2228da3b08
commit 767120a555

View File

@@ -598,7 +598,7 @@ export const processSyncActions = (
map['creds.update'].me = { ...me, name: action?.pushNameSetting?.name! }
}
} else if(action?.pinAction) {
update.pin = action.pinAction?.pinned ? toNumber(action.timestamp) : undefined
update.pin = action.pinAction?.pinned ? toNumber(action.timestamp) : null
} else if(action?.unarchiveChatsSetting) {
map['creds.update'] = map['creds.update'] || { }
map['creds.update'].accountSettings = { unarchiveChats: !!action.unarchiveChatsSetting.unarchiveChats }