diff options
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r-- | protocols/WhatsApp/src/proto.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp index 7a74dadba5..8d72d38af0 100644 --- a/protocols/WhatsApp/src/proto.cpp +++ b/protocols/WhatsApp/src/proto.cpp @@ -116,7 +116,8 @@ void WhatsAppProto::OnErase() void WhatsAppProto::OnModulesLoaded() { // initialize contacts cache - m_arUsers.insert(new WAUser(0, m_szJid, false)); + if (!m_szJid.IsEmpty()) + m_arUsers.insert(new WAUser(0, m_szJid, false)); for (auto &cc : AccContacts()) { bool bIsChat = isChatRoom(cc); |