diff options
author | George Hazan <george.hazan@gmail.com> | 2024-08-14 18:15:15 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-08-14 18:15:15 +0300 |
commit | 55b728fc501839e93dcf851db0501277e0600c4a (patch) | |
tree | c4a721243cdc064312e0a0fe1dde25de74954be9 /protocols | |
parent | 260af6626bc7681e3c92590d5a09c3019d15142c (diff) |
code cleaning
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Telegram/src/utils.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp index bda59c0768..b2d114b1e9 100644 --- a/protocols/Telegram/src/utils.cpp +++ b/protocols/Telegram/src/utils.cpp @@ -427,8 +427,7 @@ bool CTelegramProto::GetMessageFile(const EmbeddedFile &F, TG_FILE_REQUEST::Type char szReplyId[100];
- MEVENT hDbEvent = db_event_getById(m_szModuleName, F.pszId);
- DB::EventInfo dbei(hDbEvent);
+ DB::EventInfo dbei(db_event_getById(m_szModuleName, F.pszId));
dbei.flags = DBEF_TEMPORARY;
dbei.timestamp = F.pMsg->date_;
dbei.szId = F.pszId;
@@ -446,7 +445,7 @@ bool CTelegramProto::GetMessageFile(const EmbeddedFile &F, TG_FILE_REQUEST::Type DB::FILE_BLOB blob(dbei);
OnReceiveOfflineFile(blob);
blob.write(dbei);
- db_event_edit(hDbEvent, &dbei, true);
+ db_event_edit(dbei.getEvent(), &dbei, true);
delete pRequest;
}
else ProtoChainRecvFile(pRequest->m_hContact, DB::FILE_BLOB(pRequest, pszFileName, F.szBody), dbei);
|