diff options
author | George Hazan <ghazan@miranda.im> | 2023-04-13 15:00:06 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-04-13 15:00:06 +0300 |
commit | 3e4d98219d4e71ff2bf1ab093e31ffe355204b4e (patch) | |
tree | 878dd28ca855f5917900b21abb33b64be621f83b /src | |
parent | 338b214ae6675a565abc546f3f31c253d78b1dd2 (diff) |
minor compatibility fix
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/db_events.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mir_app/src/db_events.cpp b/src/mir_app/src/db_events.cpp index fefc83ba02..c3135bfa76 100644 --- a/src/mir_app/src/db_events.cpp +++ b/src/mir_app/src/db_events.cpp @@ -308,6 +308,14 @@ DB::FILE_BLOB::FILE_BLOB(const DB::EventInfo &dbei) DB::FILE_BLOB::~FILE_BLOB()
{}
+bool DB::FILE_BLOB::isCompleted() const
+{
+ if (m_iFileSize == -1)
+ return true;
+
+ return m_iFileSize != 0 && m_iFileSize == m_iTransferred;
+}
+
void DB::FILE_BLOB::write(DB::EventInfo &dbei)
{
JSONNode root;
|