mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: old_version in mobile connection (#722)
* mobile version * mobile version * mobile version
This commit is contained in:
@@ -10,7 +10,7 @@ import { createSignalIdentity } from './signal'
|
||||
|
||||
const getUserAgent = (config: SocketConfig): proto.ClientPayload.IUserAgent => {
|
||||
const osVersion = config.mobile ? '15.3.1' : '0.1'
|
||||
const version = config.mobile ? [2, 22, 24] : config.version
|
||||
const version = config.mobile ? [2, 24, 6] : config.version
|
||||
const device = config.mobile ? 'iPhone_7' : 'Desktop'
|
||||
const manufacturer = config.mobile ? 'Apple' : ''
|
||||
const platform = config.mobile ? proto.ClientPayload.UserAgent.Platform.IOS : proto.ClientPayload.UserAgent.Platform.WEB
|
||||
|
||||
Reference in New Issue
Block a user