summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-04-24 14:35:21 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-04-24 14:35:21 +0200
commit8236f6ba72f677d3572be1eab7d5f71c0150fbf9 (patch)
tree1f29d71130b640b47dfe4b160ea4ef2801042698 /src/timeline/TimelineModel.cpp
parentFix rendering issues with ) in links (diff)
parentfix macos build error (diff)
downloadnheko-8236f6ba72f677d3572be1eab7d5f71c0150fbf9.tar.xz
Merge branch 'forward_message_feature' of https://github.com/Jedi18/nheko into Jedi18-forward_message_feature
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index bfd95b0d..30ce176e 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -827,6 +827,16 @@ TimelineModel::viewRawMessage(QString id) const
 }
 
 void
+TimelineModel::forwardMessage(QString eventId, QString roomId)
+{
+        auto e = events.get(eventId.toStdString(), "");
+        if (!e)
+                return;
+
+        emit forwardToRoom(e, roomId);
+}
+
+void
 TimelineModel::viewDecryptedRawMessage(QString id) const
 {
         auto e = events.get(id.toStdString(), "");