Distinguish private and public room level messages in the lobby. Patch by scythetwirler, refs #3865.

This was SVN commit r18378.
This commit is contained in:
elexis 2016-06-14 14:07:52 +00:00
parent 8d9255eaee
commit a9426a3f26

View File

@ -646,13 +646,13 @@ int XmppClient::GetMucMessageCount()
/**
* Handle a room message.
*/
void XmppClient::handleMUCMessage(glooxwrapper::MUCRoom*, const glooxwrapper::Message& msg, bool)
void XmppClient::handleMUCMessage(glooxwrapper::MUCRoom*, const glooxwrapper::Message& msg, bool priv)
{
DbgXMPP(msg.from().resource() << " said " << msg.body());
GUIMessage message;
message.type = L"chat";
message.level = L"room-message";
message.level = priv ? L"private-message" : L"room-message";
message.from = wstring_from_utf8(msg.from().resource().to_string());
message.text = wstring_from_utf8(msg.body().to_string());
if (msg.when())