Add test for invite action

This commit is contained in:
Tobias Fella
2024-12-23 15:22:43 +01:00
parent f3a96b3562
commit 2d3373efbb
4 changed files with 99 additions and 4 deletions

View File

@@ -203,7 +203,7 @@ QList<ActionsModel::Action> actions{
return QString();
}
room->inviteToRoom(text);
Q_EMIT room->showMessage(MessageType::Positive, i18nc("<username> was invited into this room", "%1 was invited into this room", text));
Q_EMIT room->showMessage(MessageType::Positive, i18nc("<username> was invited into this room.", "%1 was invited into this room.", text));
return QString();
},
std::nullopt,
@@ -538,7 +538,7 @@ QHash<int, QByteArray> ActionsModel::roleNames() const
};
}
QList<Action> &ActionsModel::allActions() const
QList<Action> &ActionsModel::allActions()
{
return actions;
}

View File

@@ -80,7 +80,7 @@ public:
/**
* @brief Return a vector with all supported actions.
*/
QList<Action> &allActions() const;
static QList<Action> &allActions();
/**
* @brief Handle special sed style edit action.