Avoid assertion failure in the MOBILEAPP case

The dummy Unit thing is of type Wsd, not Kit, there. Just put this
into #ifndef.

Change-Id: Ic709472154fd17761a82df9814e5d3746f96f607
This commit is contained in:
Tor Lillqvist 2018-11-08 14:59:35 +02:00
parent df0b3835c5
commit 1521685c81

View file

@ -2109,9 +2109,10 @@ protected:
{
std::string message(data.data(), data.size());
#ifndef MOBILEAPP
if (UnitKit::get().filterKitMessage(this, message))
return;
#endif
std::vector<std::string> tokens = LOOLProtocol::tokenize(message);
Log::StreamLogger logger = Log::debug();
if (logger.enabled())