From d1ba81e50fab018d9a642031743019ee09d11091 Mon Sep 17 00:00:00 2001 From: Phenom Date: Wed, 16 Dec 2020 16:17:44 +0100 Subject: [PATCH] Fix System Message Sender --- libretroshare/src/services/p3msgservice.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/services/p3msgservice.cc b/libretroshare/src/services/p3msgservice.cc index 74ae4d2d5..eec8ddd25 100644 --- a/libretroshare/src/services/p3msgservice.cc +++ b/libretroshare/src/services/p3msgservice.cc @@ -1331,11 +1331,10 @@ bool p3MsgService::SystemMessage(const std::string &title, const std::string &me return false; } - const RsPeerId& ownId = mServiceCtrl->getOwnId(); RsMsgItem *msg = new RsMsgItem(); - msg->PeerId(ownId); + msg->PeerId();// Notification == null msg->msgFlags = 0; @@ -1356,7 +1355,7 @@ bool p3MsgService::SystemMessage(const std::string &title, const std::string &me msg->subject = title; msg->message = message; - msg->rspeerid_msgto.ids.insert(ownId); + msg->rspeerid_msgto.ids.insert(mServiceCtrl->getOwnId()); processIncomingMsg(msg);