diff options
Diffstat (limited to 'plugins/TabSRMM/src/mim.cpp')
-rw-r--r-- | plugins/TabSRMM/src/mim.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp index 78d7a798b2..aa27a13640 100644 --- a/plugins/TabSRMM/src/mim.cpp +++ b/plugins/TabSRMM/src/mim.cpp @@ -373,7 +373,7 @@ int CMimAPI::MessageEventAdded(WPARAM hContact, LPARAM hDbEvent) if (hContact == 0 || Contact::IsGroupChat(hContact))
return 0;
- DB::EventInfo dbei(hDbEvent, false);
+ DB::EventInfo dbei(hDbEvent);
auto *pDlg = Srmm_FindDialog(hContact);
if (pDlg == nullptr)
@@ -427,8 +427,12 @@ int CMimAPI::MessageEventAdded(WPARAM hContact, LPARAM hDbEvent) switch (dbei.eventType) {
case EVENTTYPE_AUTHREQUEST:
case EVENTTYPE_ADDED:
- case EVENTTYPE_FILE:
return 0;
+
+ case EVENTTYPE_FILE:
+ DB::FILE_BLOB blob(dbei);
+ if (!blob.isOffline())
+ return 0;
}
}
|