diff options
Diffstat (limited to 'plugins/YARelay/src')
-rw-r--r-- | plugins/YARelay/src/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/YARelay/src/main.cpp b/plugins/YARelay/src/main.cpp index 7f2f1f607f..472f3e17d8 100644 --- a/plugins/YARelay/src/main.cpp +++ b/plugins/YARelay/src/main.cpp @@ -113,9 +113,7 @@ static int MessageEventAdded(WPARAM hContact, LPARAM hDBEvent) return 0;
// receive message from DB
- DB::EventInfo dbei;
- dbei.cbBlob = -1;
- db_event_get(hDBEvent, &dbei);
+ DB::EventInfo dbei(hDBEvent);
if (dbei.flags & DBEF_SENT || dbei.flags & DBEF_READ || (dbei.eventType != EVENTTYPE_MESSAGE))
return 0;
|