Adapt to new libQuotient API changes

postPlainText is gone
This commit is contained in:
Joshua Goins
2025-01-15 15:51:05 -05:00
parent 54596e3fe6
commit a8f22003cb
2 changed files with 12 additions and 0 deletions

View File

@@ -136,7 +136,11 @@ QList<ActionsModel::Action> actions{
Action{
u"plain"_s,
[](const QString &text, NeoChatRoom *room, ChatBarCache *) {
#if Quotient_VERSION_MINOR > 9
room->postText(text.toHtmlEscaped());
#else
room->postPlainText(text.toHtmlEscaped());
#endif
return QString();
},
std::nullopt,