diff options
-rw-r--r-- | protocols/Discord/src/dispatch.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp index dccb94995e..3766361a4b 100644 --- a/protocols/Discord/src/dispatch.cpp +++ b/protocols/Discord/src/dispatch.cpp @@ -339,9 +339,11 @@ void CDiscordProto::OnCommandMessage(const JSONNode &pRoot, bool bIsNew) } else { CMStringW wszText = PrepareMessageText(pRoot); - bool bOurMessage = userId == m_ownId; + if (wszText.IsEmpty()) + return; // old message? try to restore it from database + bool bOurMessage = userId == m_ownId; if (!bIsNew) { MEVENT hOldEvent = db_event_getById(m_szModuleName, szMsgId); if (hOldEvent) { |