mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-21 18:50:47 +03:00
Don't bother with rainbow rain
This commit is contained in:
parent
5df7a8b2a7
commit
e026242a62
4 changed files with 4 additions and 14 deletions
|
@ -89,8 +89,6 @@ CommandCompleter::data(const QModelIndex &index, int role) const
|
|||
return QStringLiteral("/rainbowconfetti ");
|
||||
case Rainfall:
|
||||
return QStringLiteral("/rainfall ");
|
||||
case RainbowRain:
|
||||
return QStringLiteral("/rainbowrain ");
|
||||
case Msgtype:
|
||||
return QStringLiteral("/msgtype ");
|
||||
case Goto:
|
||||
|
@ -164,8 +162,6 @@ CommandCompleter::data(const QModelIndex &index, int role) const
|
|||
return tr("/rainbowconfetti [message]");
|
||||
case Rainfall:
|
||||
return tr("/rainfall [message]");
|
||||
case RainbowRain:
|
||||
return tr("/rainbowrain [message]");
|
||||
case Msgtype:
|
||||
return tr("/msgtype <msgtype> [message]");
|
||||
case Goto:
|
||||
|
@ -239,8 +235,6 @@ CommandCompleter::data(const QModelIndex &index, int role) const
|
|||
return tr("Send a message in rainbow colors with confetti.");
|
||||
case Rainfall:
|
||||
return tr("Send a message with rain.");
|
||||
case RainbowRain:
|
||||
return tr("Send a message in rainbow colors with rain.");
|
||||
case Msgtype:
|
||||
return tr("Send a message with a custom message type.");
|
||||
case Goto:
|
||||
|
|
|
@ -47,7 +47,6 @@ public:
|
|||
Confetti,
|
||||
RainbowConfetti,
|
||||
Rainfall,
|
||||
RainbowRain,
|
||||
Msgtype,
|
||||
Goto,
|
||||
ConvertToDm,
|
||||
|
|
|
@ -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")) {
|
||||
|
|
|
@ -242,7 +242,7 @@ private:
|
|||
void emote(const QString &body, bool rainbowify);
|
||||
void notice(const QString &body, bool rainbowify);
|
||||
void confetti(const QString &body, bool rainbowify);
|
||||
void rainfall(const QString &body, bool rainbowify);
|
||||
void rainfall(const QString &body);
|
||||
void customMsgtype(const QString &msgtype, const QString &body);
|
||||
bool command(const QString &name, QString args);
|
||||
void image(const QString &filename,
|
||||
|
|
Loading…
Reference in a new issue