chore: lint

This commit is contained in:
Rajeh Taher
2025-10-16 13:26:58 +03:00
parent 93b87e4653
commit d0feb240fa
4 changed files with 13 additions and 6 deletions
+1
View File
@@ -815,6 +815,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
/** sending non-abt props may fix QR scan fail if server expects */
const fetchProps = async () => {
//TODO: implement both protocol 1 and protocol 2 prop fetching, specially for abKey for WM
const resultNode = await query({
tag: 'iq',
attrs: {
+5 -3
View File
@@ -467,10 +467,12 @@ export const makeMessagesSocket = (config: SocketConfig) => {
push_priority: 'high_force'
},
additionalNodes: [{
additionalNodes: [
{
tag: 'meta',
attrs: {'appdata': 'default'}
}]
attrs: { appdata: 'default' }
}
]
})
return msgId
+5 -1
View File
@@ -40,7 +40,11 @@ const PLATFORM_MAP = {
const getWebInfo = (config: SocketConfig): proto.ClientPayload.IWebInfo => {
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]
}