fix: Whatsapp increased the number of characters in IDs, but followed the IOS standard (#201682)

This commit is contained in:
Lindionez 2026-04-06 12:06:48 -03:00 • committed by GitHub
commit a0ff21e67c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,7 +103,7 @@ class Message extends Base {
* @type {string}
*/
this.deviceType =
typeof data.id.id === 'string' && data.id.id.length > 21
typeof data.id.id === 'string' && data.id.id.length > 25
? 'android'
: typeof data.id.id === 'string' &&
data.id.id.substring(0, 2) === '3A'