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:41:49 -0400
committerNicolas Werner <nicolas.werner@hotmail.de>2023-04-11 01:01:21 +0200
commit138b0a6b8683a8e69a4d2fb92926e5a0645d4d5a (patch)
tree73e5cd6ed41ff9d150f747c1e89455e155bda807 /src/timeline/InputBar.cpp
parentDon't bother with rainbow rain (diff)
downloadnheko-138b0a6b8683a8e69a4d2fb92926e5a0645d4d5a.tar.xz
Use the new mtxclient special effects refactoring
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r--src/timeline/InputBar.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp
index d3810cf8..fe8b8e48 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -609,8 +609,9 @@ InputBar::confetti(const QString &body, bool rainbowify)
 {
     auto html = utils::markdownToHtml(body, rainbowify);
 
-    mtx::events::msg::Confetti confetti;
-    confetti.body = body.trimmed().toStdString();
+    mtx::events::msg::ElementEffect confetti;
+    confetti.msgtype = "nic.custom.confetti";
+    confetti.body    = body.trimmed().toStdString();
 
     if (html != body.trimmed().toHtmlEscaped() &&
         ChatPage::instance()->userSettings()->markdown()) {