Adapt to libQuotient API change

This commit is contained in:
Tobias Fella
2021-12-10 18:06:12 +01:00
parent 658eb187c9
commit d0e04e0c97

View File

@@ -331,7 +331,11 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format,
const bool prettyPrint = (format == Qt::RichText);
using namespace Quotient;
#ifdef QUOTIENT_07
return switchOnType(
#else
return visit(
#endif
evt,
[this, prettyPrint, removeReply](const RoomMessageEvent &e) {
using namespace MessageEventContent;