From 138b0a6b8683a8e69a4d2fb92926e5a0645d4d5a Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Sat, 1 Apr 2023 15:41:49 -0400 Subject: Use the new mtxclient special effects refactoring --- src/timeline/InputBar.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/timeline/InputBar.cpp') 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()) { -- cgit 1.5.1