summary refs log tree commit diff
path: root/src/CommandCompleter.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2024-01-06 14:38:45 +0000
committerGitHub <noreply@github.com>2024-01-06 14:38:45 +0000
commit45cc7ab6f7e3a9fa18ac9e970ce7c50782e88c97 (patch)
tree07a00617d3bba087a9cbc0796f299b113c54ec7d /src/CommandCompleter.cpp
parentTranslated using Weblate (Portuguese (Portugal)) (diff)
parentdeleteLater() on failure (diff)
downloadnheko-45cc7ab6f7e3a9fa18ac9e970ce7c50782e88c97.tar.xz
Merge pull request #1635 from NepNep21/ignore-command
Add /ignore, fixes #1634
Diffstat (limited to '')
-rw-r--r--src/CommandCompleter.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/CommandCompleter.cpp b/src/CommandCompleter.cpp

index 8123b8e6..ee666559 100644 --- a/src/CommandCompleter.cpp +++ b/src/CommandCompleter.cpp
@@ -97,6 +97,10 @@ CommandCompleter::data(const QModelIndex &index, int role) const return QStringLiteral("/converttodm"); case ConvertToRoom: return QStringLiteral("/converttoroom"); + case Ignore: + return QStringLiteral("/ignore"); + case Unignore: + return QStringLiteral("/unignore"); default: return {}; } @@ -170,6 +174,10 @@ CommandCompleter::data(const QModelIndex &index, int role) const return QStringLiteral("/converttodm"); case ConvertToRoom: return QStringLiteral("/converttoroom"); + case Ignore: + return QStringLiteral("/ignore <@userid>"); + case Unignore: + return QStringLiteral("/unignore <@userid>"); default: return {}; } @@ -243,6 +251,10 @@ CommandCompleter::data(const QModelIndex &index, int role) const return tr("Convert this room to a direct chat."); case ConvertToRoom: return tr("Convert this direct chat into a room."); + case Ignore: + return tr("Ignore a user."); + case Unignore: + return tr("Stop ignoring a user."); default: return {}; }