summaryrefslogtreecommitdiff
path: root/protocols/Discord
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Discord')
-rw-r--r--protocols/Discord/src/server.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp
index f1e3135aa4..735d2193b8 100644
--- a/protocols/Discord/src/server.cpp
+++ b/protocols/Discord/src/server.cpp
@@ -111,9 +111,8 @@ void CDiscordProto::OnReceiveHistory(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest
bSucceeded = 0 == db_event_edit(pUser->hContact, hDbEvent, &dbei);
if (!bSucceeded) {
- MEVENT hNew = db_event_add(pUser->hContact, &dbei);
- if (hNew != 0)
- db_event_setId(m_szModuleName, hNew, szMsgId);
+ dbei.szId = szMsgId;
+ db_event_add(pUser->hContact, &dbei);
}
}
else {