diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2023-04-01 15:41:49 -0400 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-04-11 01:01:21 +0200 |
commit | 138b0a6b8683a8e69a4d2fb92926e5a0645d4d5a (patch) | |
tree | 73e5cd6ed41ff9d150f747c1e89455e155bda807 /src/timeline/InputBar.cpp | |
parent | Don't bother with rainbow rain (diff) | |
download | nheko-138b0a6b8683a8e69a4d2fb92926e5a0645d4d5a.tar.xz |
Use the new mtxclient special effects refactoring
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r-- | src/timeline/InputBar.cpp | 5 |
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()) { |