Skip to content
Snippets Groups Projects
Commit 7abeb1f1 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

React with arbitrary strings via /react

parent 70395027
No related branches found
No related tags found
No related merge requests found
Pipeline #207 passed
......@@ -21,6 +21,7 @@
#include "MatrixClient.h"
#include "Olm.h"
#include "TimelineModel.h"
#include "TimelineViewManager.h"
#include "UserSettingsPage.h"
#include "UsersModel.h"
#include "Utils.h"
......@@ -433,6 +434,11 @@ InputBar::command(QString command, QString args)
{
if (command == "me") {
emote(args);
} else if (command == "react") {
auto eventId = room->reply();
if (!eventId.isEmpty())
ChatPage::instance()->timelineManager()->queueReactionMessage(
eventId, args.trimmed());
} else if (command == "join") {
ChatPage::instance()->joinRoom(args);
} else if (command == "invite") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment