summary refs log tree commit diff
path: root/src/timeline/InputBar.cpp
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2023-04-01 15:40:58 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2023-04-08 18:59:17 -0400
commite026242a62aad2036e9f72c6f0048811e3dc1a2b (patch)
tree3edb4dceca641f05e2bec70688f5bae4631786a8 /src/timeline/InputBar.cpp
parentRain, rain, go away sooner (diff)
downloadnheko-e026242a62aad2036e9f72c6f0048811e3dc1a2b.tar.xz
Don't bother with rainbow rain
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r--src/timeline/InputBar.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp

index 3a14790c..d3810cf8 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp
@@ -282,7 +282,6 @@ InputBar::updateTextContentProperties(const QString &t) QStringLiteral("confetti"), QStringLiteral("rainbowconfetti"), QStringLiteral("rainfall"), - QStringLiteral("rainbowrain"), QStringLiteral("msgtype"), QStringLiteral("goto"), QStringLiteral("converttodm"), @@ -627,9 +626,9 @@ InputBar::confetti(const QString &body, bool rainbowify) } void -InputBar::rainfall(const QString &body, bool rainbowify) +InputBar::rainfall(const QString &body) { - auto html = utils::markdownToHtml(body, rainbowify); + auto html = utils::markdownToHtml(body); mtx::events::msg::Unknown rain; rain.msgtype = "io.element.effect.rainfall"; @@ -942,9 +941,7 @@ InputBar::command(const QString &command, QString args) } else if (command == QLatin1String("rainbowconfetti")) { confetti(args, true); } else if (command == QLatin1String("rainfall")) { - rainfall(args, false); - } else if (command == QLatin1String("rainbowrain")) { - rainfall(args, true); + rainfall(args); } else if (command == QLatin1String("msgtype")) { customMsgtype(args.section(' ', 0, 0), args.section(' ', 1, -1)); } else if (command == QLatin1String("goto")) {