mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +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 ");
|
return QStringLiteral("/rainbowconfetti ");
|
||||||
case Rainfall:
|
case Rainfall:
|
||||||
return QStringLiteral("/rainfall ");
|
return QStringLiteral("/rainfall ");
|
||||||
case RainbowRain:
|
|
||||||
return QStringLiteral("/rainbowrain ");
|
|
||||||
case Msgtype:
|
case Msgtype:
|
||||||
return QStringLiteral("/msgtype ");
|
return QStringLiteral("/msgtype ");
|
||||||
case Goto:
|
case Goto:
|
||||||
|
@ -164,8 +162,6 @@ CommandCompleter::data(const QModelIndex &index, int role) const
|
||||||
return tr("/rainbowconfetti [message]");
|
return tr("/rainbowconfetti [message]");
|
||||||
case Rainfall:
|
case Rainfall:
|
||||||
return tr("/rainfall [message]");
|
return tr("/rainfall [message]");
|
||||||
case RainbowRain:
|
|
||||||
return tr("/rainbowrain [message]");
|
|
||||||
case Msgtype:
|
case Msgtype:
|
||||||
return tr("/msgtype <msgtype> [message]");
|
return tr("/msgtype <msgtype> [message]");
|
||||||
case Goto:
|
case Goto:
|
||||||
|
@ -239,8 +235,6 @@ CommandCompleter::data(const QModelIndex &index, int role) const
|
||||||
return tr("Send a message in rainbow colors with confetti.");
|
return tr("Send a message in rainbow colors with confetti.");
|
||||||
case Rainfall:
|
case Rainfall:
|
||||||
return tr("Send a message with rain.");
|
return tr("Send a message with rain.");
|
||||||
case RainbowRain:
|
|
||||||
return tr("Send a message in rainbow colors with rain.");
|
|
||||||
case Msgtype:
|
case Msgtype:
|
||||||
return tr("Send a message with a custom message type.");
|
return tr("Send a message with a custom message type.");
|
||||||
case Goto:
|
case Goto:
|
||||||
|
|
|
@ -47,7 +47,6 @@ public:
|
||||||
Confetti,
|
Confetti,
|
||||||
RainbowConfetti,
|
RainbowConfetti,
|
||||||
Rainfall,
|
Rainfall,
|
||||||
RainbowRain,
|
|
||||||
Msgtype,
|
Msgtype,
|
||||||
Goto,
|
Goto,
|
||||||
ConvertToDm,
|
ConvertToDm,
|
||||||
|
|
|
@ -282,7 +282,6 @@ InputBar::updateTextContentProperties(const QString &t)
|
||||||
QStringLiteral("confetti"),
|
QStringLiteral("confetti"),
|
||||||
QStringLiteral("rainbowconfetti"),
|
QStringLiteral("rainbowconfetti"),
|
||||||
QStringLiteral("rainfall"),
|
QStringLiteral("rainfall"),
|
||||||
QStringLiteral("rainbowrain"),
|
|
||||||
QStringLiteral("msgtype"),
|
QStringLiteral("msgtype"),
|
||||||
QStringLiteral("goto"),
|
QStringLiteral("goto"),
|
||||||
QStringLiteral("converttodm"),
|
QStringLiteral("converttodm"),
|
||||||
|
@ -627,9 +626,9 @@ InputBar::confetti(const QString &body, bool rainbowify)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
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;
|
mtx::events::msg::Unknown rain;
|
||||||
rain.msgtype = "io.element.effect.rainfall";
|
rain.msgtype = "io.element.effect.rainfall";
|
||||||
|
@ -942,9 +941,7 @@ InputBar::command(const QString &command, QString args)
|
||||||
} else if (command == QLatin1String("rainbowconfetti")) {
|
} else if (command == QLatin1String("rainbowconfetti")) {
|
||||||
confetti(args, true);
|
confetti(args, true);
|
||||||
} else if (command == QLatin1String("rainfall")) {
|
} else if (command == QLatin1String("rainfall")) {
|
||||||
rainfall(args, false);
|
rainfall(args);
|
||||||
} else if (command == QLatin1String("rainbowrain")) {
|
|
||||||
rainfall(args, true);
|
|
||||||
} else if (command == QLatin1String("msgtype")) {
|
} else if (command == QLatin1String("msgtype")) {
|
||||||
customMsgtype(args.section(' ', 0, 0), args.section(' ', 1, -1));
|
customMsgtype(args.section(' ', 0, 0), args.section(' ', 1, -1));
|
||||||
} else if (command == QLatin1String("goto")) {
|
} else if (command == QLatin1String("goto")) {
|
||||||
|
|
|
@ -242,7 +242,7 @@ private:
|
||||||
void emote(const QString &body, bool rainbowify);
|
void emote(const QString &body, bool rainbowify);
|
||||||
void notice(const QString &body, bool rainbowify);
|
void notice(const QString &body, bool rainbowify);
|
||||||
void confetti(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);
|
void customMsgtype(const QString &msgtype, const QString &body);
|
||||||
bool command(const QString &name, QString args);
|
bool command(const QString &name, QString args);
|
||||||
void image(const QString &filename,
|
void image(const QString &filename,
|
||||||
|
|
Loading…
Reference in a new issue