chore: lint
This commit is contained in:
@@ -815,6 +815,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
|||||||
|
|
||||||
/** sending non-abt props may fix QR scan fail if server expects */
|
/** sending non-abt props may fix QR scan fail if server expects */
|
||||||
const fetchProps = async () => {
|
const fetchProps = async () => {
|
||||||
|
//TODO: implement both protocol 1 and protocol 2 prop fetching, specially for abKey for WM
|
||||||
const resultNode = await query({
|
const resultNode = await query({
|
||||||
tag: 'iq',
|
tag: 'iq',
|
||||||
attrs: {
|
attrs: {
|
||||||
|
|||||||
@@ -467,10 +467,12 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
|||||||
|
|
||||||
push_priority: 'high_force'
|
push_priority: 'high_force'
|
||||||
},
|
},
|
||||||
additionalNodes: [{
|
additionalNodes: [
|
||||||
|
{
|
||||||
tag: 'meta',
|
tag: 'meta',
|
||||||
attrs: {'appdata': 'default'}
|
attrs: { appdata: 'default' }
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
return msgId
|
return msgId
|
||||||
|
|||||||
@@ -40,7 +40,11 @@ const PLATFORM_MAP = {
|
|||||||
|
|
||||||
const getWebInfo = (config: SocketConfig): proto.ClientPayload.IWebInfo => {
|
const getWebInfo = (config: SocketConfig): proto.ClientPayload.IWebInfo => {
|
||||||
let webSubPlatform = proto.ClientPayload.WebInfo.WebSubPlatform.WEB_BROWSER
|
let webSubPlatform = proto.ClientPayload.WebInfo.WebSubPlatform.WEB_BROWSER
|
||||||
if (config.syncFullHistory && PLATFORM_MAP[config.browser[0] as keyof typeof PLATFORM_MAP] && config.browser[1] == 'Desktop') {
|
if (
|
||||||
|
config.syncFullHistory &&
|
||||||
|
PLATFORM_MAP[config.browser[0] as keyof typeof PLATFORM_MAP] &&
|
||||||
|
config.browser[1] === 'Desktop'
|
||||||
|
) {
|
||||||
webSubPlatform = PLATFORM_MAP[config.browser[0] as keyof typeof PLATFORM_MAP]
|
webSubPlatform = PLATFORM_MAP[config.browser[0] as keyof typeof PLATFORM_MAP]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user