diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-04-24 14:35:21 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-04-24 14:35:21 +0200 |
commit | 8236f6ba72f677d3572be1eab7d5f71c0150fbf9 (patch) | |
tree | 1f29d71130b640b47dfe4b160ea4ef2801042698 /src/timeline/TimelineModel.cpp | |
parent | Fix rendering issues with ) in links (diff) | |
parent | fix macos build error (diff) | |
download | nheko-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.cpp | 10 |
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(), ""); |