Adapt to libQuotient API change
This commit is contained in:
@@ -331,7 +331,11 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format,
|
|||||||
const bool prettyPrint = (format == Qt::RichText);
|
const bool prettyPrint = (format == Qt::RichText);
|
||||||
|
|
||||||
using namespace Quotient;
|
using namespace Quotient;
|
||||||
|
#ifdef QUOTIENT_07
|
||||||
|
return switchOnType(
|
||||||
|
#else
|
||||||
return visit(
|
return visit(
|
||||||
|
#endif
|
||||||
evt,
|
evt,
|
||||||
[this, prettyPrint, removeReply](const RoomMessageEvent &e) {
|
[this, prettyPrint, removeReply](const RoomMessageEvent &e) {
|
||||||
using namespace MessageEventContent;
|
using namespace MessageEventContent;
|
||||||
|
|||||||
Reference in New Issue
Block a user