fix: Whatsapp increased the number of characters in IDs, but followed the IOS standard (#201682)
This commit is contained in:
parent
1a9a1b7022
commit
a0ff21e67c
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ class Message extends Base {
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
this.deviceType =
|
this.deviceType =
|
||||||
typeof data.id.id === 'string' && data.id.id.length > 21
|
typeof data.id.id === 'string' && data.id.id.length > 25
|
||||||
? 'android'
|
? 'android'
|
||||||
: typeof data.id.id === 'string' &&
|
: typeof data.id.id === 'string' &&
|
||||||
data.id.id.substring(0, 2) === '3A'
|
data.id.id.substring(0, 2) === '3A'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue