From eb632a84170ea471b4a3334b951d52c9827e393b Mon Sep 17 00:00:00 2001
From: George Hazan <ghazan@miranda.im>
Date: Wed, 31 Jan 2018 22:48:49 +0300
Subject: fix for the broken message reading in NewsAggregator

---
 plugins/NewsAggregator/Src/Services.cpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

(limited to 'plugins/NewsAggregator/Src/Services.cpp')

diff --git a/plugins/NewsAggregator/Src/Services.cpp b/plugins/NewsAggregator/Src/Services.cpp
index 885f311fe1..1e222f9314 100644
--- a/plugins/NewsAggregator/Src/Services.cpp
+++ b/plugins/NewsAggregator/Src/Services.cpp
@@ -213,6 +213,17 @@ INT_PTR NewsAggrGetAvatarInfo(WPARAM wParam, LPARAM lParam)
 	return GAIR_WAITFOR;
 }
 
+INT_PTR NewsAggrRecvMessage(WPARAM, LPARAM lParam)
+{
+	PROTOACCOUNT *pa = Proto_GetAccount(MODULE);
+	if (pa && pa->ppro) {
+		CCSDATA *ccs = (CCSDATA*)lParam;
+		pa->ppro->PROTO_INTERFACE::RecvMsg(ccs->hContact, (PROTORECVEVENT*)ccs->lParam);
+	}
+
+	return 0;
+}
+
 void UpdateMenu(bool State)
 {
 	if (!State) // to enable auto-update
-- 
cgit v1.2.3