diff options
Diffstat (limited to 'protocols/WhatsApp/src/utils.cpp')
-rw-r--r-- | protocols/WhatsApp/src/utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/utils.cpp b/protocols/WhatsApp/src/utils.cpp index f4cc2e0e55..9f4d64a4d4 100644 --- a/protocols/WhatsApp/src/utils.cpp +++ b/protocols/WhatsApp/src/utils.cpp @@ -14,7 +14,7 @@ WAJid::WAJid(const char *pszUser, const char *pszServer, int iDevice, int iAgent agent(iAgent) {} -WAJid::WAJid(const char *pszJid) +WAJid::WAJid(const char *pszJid, int _id) { if (pszJid == nullptr) pszJid = ""; @@ -30,7 +30,7 @@ WAJid::WAJid(const char *pszJid) *p = 0; device = atoi(p + 1); } - else device = 0; + else device = _id; if (p = strrchr(tmp, '_')) { *p = 0; |