chore: lint
This commit is contained in:
@@ -40,7 +40,7 @@ export const PROCESSABLE_HISTORY_TYPES = [
|
||||
proto.Message.HistorySyncNotification.HistorySyncType.FULL,
|
||||
proto.Message.HistorySyncNotification.HistorySyncType.ON_DEMAND,
|
||||
proto.Message.HistorySyncNotification.HistorySyncType.NON_BLOCKING_DATA,
|
||||
proto.Message.HistorySyncNotification.HistorySyncType.INITIAL_STATUS_V3
|
||||
proto.Message.HistorySyncNotification.HistorySyncType.INITIAL_STATUS_V3
|
||||
]
|
||||
|
||||
export const DEFAULT_CONNECTION_CONFIG: SocketConfig = {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -467,10 +467,12 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
||||
|
||||
push_priority: 'high_force'
|
||||
},
|
||||
additionalNodes: [{
|
||||
tag: 'meta',
|
||||
attrs: {'appdata': 'default'}
|
||||
}]
|
||||
additionalNodes: [
|
||||
{
|
||||
tag: 'meta',
|
||||
attrs: { appdata: 'default' }
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
return msgId
|
||||
|
||||
@@ -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]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user